commit | 6f0ed157df0504c832168fb75a2bf04dea81a905 | [log] [tgz] |
---|---|---|
author | Camille Simon <43054281+camsim99@users.noreply.github.com> | Wed Apr 10 10:59:46 2024 -0700 |
committer | GitHub <noreply@github.com> | Wed Apr 10 17:59:46 2024 +0000 |
tree | bd66a3c01ceee4cca0eb4dcfa7b4f6ffb1a3a9f2 | |
parent | d680544e4b1393a5d14e5224219769c5c85851ad [diff] |
[camerax] Shorten interval for releasing weak references to Dart-wrapped native objects (#6493) This PR: 1. Shortens the `InstanceManager`'s default time interval that it waits to remove references to Dart-wrapped Android native objects. The shortened interval matches `webview_flutter_android`s `InstanceManager`; because it has been tested by that plugin, we expect it not to impact performance and this could help reduce overall memory usage by the plugin. 2. Dynamically shortens that same time interval whenever image streaming is started/stopped to account for the increased memory usage that this camera use case requires. Fixes https://github.com/flutter/flutter/issues/145893.
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages
directory to see all packages.
These packages are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled “package”.
If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.
These are the packages hosted in this repository: