1. 20 Jul, 2022 1 commit
    • Vyacheslav Egorov's avatar
      Use persistent hash map to store _inheritedWidgets (#107068) · 81300293
      Vyacheslav Egorov authored
      * Use persistent hash map to store _inheritedWidgets
      
      Instead of using a HashMap and copying it down the tree
      which leads to quadratic time and space complexity
      use a persistent data structure which can amortize
      the cost by sharing parts of the structure.
      
      The data shows HAMT based PersistentHashMap to be
      5-10x faster for building _inheritedWidgets and
      considerably more space effecient (e.g. bringing
      amount of memory allocated when constructing
      _inheritedWidgets in a tree with 150 InheritedWidget
      down to 70Kb from 970Kb).
      
      PersistentHashMap is slower than HashMap for
      access: 2-3x in relative terms, but in absolute
      terms we are only talking about ~0.2ns slow down
      per access and various app benchmarks we run have
      have not revealed any significant regressions.
      81300293
  2. 18 May, 2022 1 commit
  3. 07 Jan, 2021 1 commit
  4. 11 Dec, 2020 1 commit
  5. 15 Jul, 2020 1 commit
  6. 11 Jun, 2020 1 commit
  7. 27 May, 2020 1 commit
  8. 18 May, 2020 1 commit
  9. 15 Jan, 2020 1 commit
  10. 08 Jan, 2020 1 commit
  11. 06 Jan, 2020 1 commit
  12. 27 Nov, 2019 1 commit
    • Ian Hickson's avatar
      License update (#45373) · 449f4a66
      Ian Hickson authored
      * Update project.pbxproj files to say Flutter rather than Chromium
      
      Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright.
      
      * Update the copyright notice checker to require a standard notice on all files
      
      * Update copyrights on Dart files. (This was a mechanical commit.)
      
      * Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine.
      
      Some were already marked "The Flutter Authors", not clear why. Their
      dates have been normalized. Some were missing the blank line after the
      license. Some were randomly different in trivial ways for no apparent
      reason (e.g. missing the trailing period).
      
      * Clean up the copyrights in non-Dart files. (Manual edits.)
      
      Also, make sure templates don't have copyrights.
      
      * Fix some more ORGANIZATIONNAMEs
      449f4a66
  13. 04 Jun, 2019 2 commits
  14. 03 Jun, 2019 1 commit
  15. 06 Feb, 2019 1 commit
    • Greg Spencer's avatar
      Make a kReleaseMode constant that is public. (#27502) · da27f623
      Greg Spencer authored
      Before this, we had several places where an isReleaseMode was defined, all with the same definition. This just makes it more broadly visible to allow our users to use it, as well as creating debug and profile versions, and adding a device lab test for it.
      
      Since this is a const value, this makes it possible for a developer to easily mark blocks that can be removed at AOT compile time.
      da27f623
  16. 22 Mar, 2018 1 commit
    • Jonah Williams's avatar
      Remove package:http from Flutter (#15416) · 88cc9773
      Jonah Williams authored
      * use HttpOverrides and dart:io HttpClient in flutter
      
      * add missing package:http dependency
      
      * update flutter packages and remove comment about createHttpClient from flutter_test
      
      * move byte loading logic to common class, move string parsing logic to base class
      
      * addAll doesn't work for a Uint8List
      
      * use bytes.setRange
      
      * undo addition to hello_world
      
      * add newline to end of binding.dart
      
      * and a newline for hello world
      
      * refactor to function and add tests
      
      * address comments on unknown length case
      
      * alignment
      
      * sort alaphabetically
      
      * rename convertResponse to consolidateClientHttpClientResponseBytes.  Add header
      
      * fix alignment in test
      88cc9773
  17. 20 Jan, 2018 1 commit
    • Ian Hickson's avatar
      [H] Move the splitting of licenses to an isolate (#14160) · a29d723c
      Ian Hickson authored
      * Move the splitting of licenses to an isolate
      
      This improves (from horrific to terrible) the performance of the
      license screen. It also introduces a feature in the foundation layer
      to make using isolates for one-off computations easier.
      
      The real problem that remains with this, though, is that transfering
      data between isolates is a stop-the-world operation and can take an
      absurd amount of time (far more than a few milliseconds), so we still
      skip frames.
      
      More work thus remains to be done.
      
      * - Add profile instrumentation to the isolate compute() method
      - Add profile instrumentation to the LicensePage
      - Add profile instrumentation to the scheduleTask method
      - Make scheduleTask support returning a value
      - Make the license page builder logic use scheduled tasks so that it doesn't blow the frame budget
      a29d723c
  18. 05 Dec, 2017 1 commit
  19. 01 Nov, 2017 1 commit
  20. 07 Sep, 2017 1 commit
  21. 03 Aug, 2017 1 commit
  22. 30 Jul, 2017 1 commit
  23. 28 Jul, 2017 1 commit
  24. 27 Jul, 2017 3 commits
    • Devon Carew's avatar
      ba5bb57a
    • Devon Carew's avatar
      fire service protocol extension events for frames (#10966) · 4b4cabb7
      Devon Carew authored
      * fire service protocol extension events for frames
      
      * start time in micros
      
      * introduce a profile() function; only send frame events when in profile (or debug) modes
      
      * moved the profile() function to foundation/profile.dart
      
      * refactor to make the change more testable; test the change
      
      * fire service protocol events by listening to onFrameInfo
      
      * remove the frame event stream; add a devicelab test
      
      * remove a todo
      
      * final
      4b4cabb7
    • Ian Hickson's avatar
      Increase the touch slop. (#11419) · 87445e59
      Ian Hickson authored
      It was 8.0. It's now arbitrarily 18.0.
      
      Changing this required adjusting some tests. Adjusting the tests
      required debugging the tests. Debugging the tests required some tools
      to help debugging gesture recognizers and gesture arenas, so I added
      some. It also required updating some toString() methods which resulted
      in some changes to the tree diagnostics logic.
      
      Also I cleaned up some docs while I was at it.
      87445e59
  25. 21 Jul, 2017 1 commit
    • Ian Hickson's avatar
      Add documentation and clean up code. (#11330) · 8f56f6fd
      Ian Hickson authored
      Mainly, this adds documentation to members that were previously
      lacking documentation.
      
      It also adds a big block of documentation about improving performance
      of widgets.
      
      This also removes some references to package:collection and adds
      global setEquals and listEquals methods in foundation that we can use.
      (setEquals in particular should be much faster than the
      package:collection equivalent, though both should be faster as they
      avoid allocating new objects.) All remaining references now qualify
      the import so we know what our remaining dependencies are.
      
      Also lots of code reordering in Flutter driver to make the code
      consistent and apply the style guide more thoroughly.
      8f56f6fd
  26. 30 Jun, 2017 1 commit
  27. 19 Jun, 2017 1 commit
  28. 13 Jun, 2017 1 commit
  29. 12 Jun, 2017 1 commit
  30. 14 Apr, 2017 1 commit
  31. 31 Mar, 2017 1 commit
    • Adam Barth's avatar
      Improve focus management (#9074) · 89aaaa9c
      Adam Barth authored
      We now have an explicit focus tree that we manage. Instead of using
      GlobalKeys to manage focus, we use FocusNode and FocusScopeNode objects.
      The FocusNode is Listenable and notifies when its focus state changes.
      
      Focus notifications trigger by tree mutations are now delayed by one
      frame, which is necessary to handle certain complex tree mutations. In
      the common case of focus changes being triggered by user input, the
      focus notificiation still arives in the same frame.
      89aaaa9c
  32. 01 Mar, 2017 1 commit
  33. 23 Feb, 2017 1 commit
  34. 21 Feb, 2017 1 commit
  35. 03 Feb, 2017 1 commit
  36. 20 Jan, 2017 1 commit
    • Adam Barth's avatar
      Strengthen animation listener iteration patterns (#7566) · 0f1d9775
      Adam Barth authored
      This patch aligns the iteration patterns used by animations and
      ChangeNotifier. They now both respect re-entrant removal of listeners
      and coalesce duplication registrations. (Also, ChangeNotifier
      notification is no longer N^2).
      
      This patch introduces ObserverList to avoid the performance regression that the
      previous version of this patch caused.
      
      Fixes #7533
      0f1d9775
  37. 15 Dec, 2016 1 commit
    • Ian Hickson's avatar
      Listenable.merge (#7256) · 977a25f2
      Ian Hickson authored
      Sometimes you have several listenables, but you want to hand them to an
      API (e.g. CustomPainter) that only expects one.
      977a25f2