Flutter garbage collection does not allow out of order children to be collected

This issue has been created since 2022-09-22.

It currently expects children to be collected in sequential order.
While developing the dynamic_layouts package in flutter/packages, @DavBot02 and @snat-s created grid layout patterns that allowed children to deviate from sequential order.

This did not allow for proper efficient garbage collection of leading children as their layouts were used to create more and more complex layouts.

Because of this, the leading children are not currently collected there in order to maintain the layout.

We should consider:

  • updating the dynamic_layouts package to cache the layout of preceding tiles, so some of them can be garbage collected. That way as user's scroll back up, the tiles can be replaced where they belong
  • or, consider a new garbage collection option to pick children ad hoc.
More Details About Repo
Owner Name flutter
Repo Name flutter
Full Name flutter/flutter
Language Dart
Created Date 2015-03-06
Updated Date 2022-10-05
Star Count 145512
Watcher Count 3569
Fork Count 23398
Issue Count 11205

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
text disappears upon wake from sleep 7 2022-05-16 2022-09-07
eyJ2Ijoid2lufDEuMi41IiwiaSI6IjFacXdkbEhXVWkiLCJsIjoiUEMtMjAxNzA4MjkyMDExIHwgQWRtaW5pc3RyYXRvciB8IFdpbmRvd3MifQ== 3 2022-04-20 2022-06-14
Bug: startpage engine 1 2022-08-04 2022-09-06
Upgrade to recent Tokio version v1.0 11 2021-03-22 2022-10-04
Inconsistent usage of appimagetool in release distributations 12 2022-05-10 2022-07-27
System.ObjectDisposedException on WatsonTCPClient.Connect() 12 2022-01-06 2022-07-30
Flip-behavior breaks when passing in string instead of string[] 3 2021-04-09 2022-09-22
[Quesstion] Getting deployment-id or url after deploy as an output 2 2022-08-03 2022-09-06
windows: `:` colon is a reserved character for windows filesystems 4 2020-08-23 2022-09-26
Media tries to update unmounted component 20 2019-11-12 2022-08-27
@Data annotation for model classes 0 2019-06-27 2022-08-02
webgl support 0 2021-04-27 2021-12-26
iOS build fails on 2021.2.0a16 0 2021-05-16 2022-09-10
LocalUnused does not flag unused function parameters 6 2022-06-02 2022-09-26
Display explanation on Android 11+ why Android/data is empty 1 2021-11-08 2022-07-10
Clutterreport: /system/build.prop (FP) 1 2021-11-19 2022-07-10
[BUG] Uploading images from files seemed to time out and now can't upload files 5 2021-12-22 2022-09-29
Ryujinx not booting any game (|E| Application : Unhandled exception caught) 4 2022-07-13 2022-09-26
Keep same file name for log and rotate the file with timestamp 11 2021-02-01 2022-09-19
Link Checker Report 0 2021-10-05 2022-01-02
Defining multiple classes for one hook 0 2021-12-20 2022-09-26
CMake needs a fairly new version to work 0 2021-11-08 2022-08-27
Unable to access connectors 1 2022-05-20 2022-08-31
Receiving Object in Options 3 2022-06-21 2022-09-23
Unrecognized command line option '-std=c++20' 4 2022-09-06 2022-09-25
[HiDPI] Wrong font scale in multiple UI elements of CodeLite 0 2022-08-09 2022-09-25
failure to fetch CSS 11 2017-12-11 2022-07-24
Editing rights on geonode 1 2021-04-15 2022-08-15
When the light component is used as the light source and the Look Modification is turned on, a doughnut-shaped texture appears. 1 2022-08-26 2022-08-30
exit on ctrl-D 0 2022-01-03 2022-01-01
Failed to run a container on Apple M1 chip 3 2021-07-01 2022-09-25
cockpit-ssh sits in a tight loop all the time 1 2022-06-20 2022-09-21
Latest GitHub schema doesn't load 1 2022-08-19 2022-09-23
docker command not found 3 2021-03-03 2022-07-15
Feature: filenames 1 2021-02-17 2022-01-21
Cannot build Keytar for raspberry pi 4 5 2021-07-05 2022-10-02
eslint-plugin-markdown v2 doesn't lint code samples with `javascript` syntax 5 2021-02-28 2022-09-24
Wrapping the context too many times causes panics 3 2021-05-15 2022-10-03
Getting Array to string conversion 1 2020-02-24 2022-09-19
why use constexpr function obj instead of normal function? 1 2020-11-24 2022-09-28
Existing Synapse Pool - Unable to reference 1 2022-02-20 2022-09-16
Bundle size hugely increased after using FFMPEG 6 2021-04-16 2022-09-20
Lifetime elision doesn't work right with nested self receivers. 2 2020-02-11 2022-10-03
add type for reference url 1 2022-04-19 2022-09-30
ScoringSystem should be subclasses and not instance 1 2022-04-12 2022-08-03
Indeterminate checkbox state doesn't get changed via uncheck({ force: true }) 5 2021-11-24 2022-08-06
Question: Is there a way to setup continuous scroll along the horizontal date axis? 2 2021-01-28 2022-10-02
Add a wiki on how to add and implement new sensors 4 2019-04-04 2022-09-17
Failed to build 1 2020-02-21 2021-11-25
thread ... panicked at 'lastsz unset!', .../esil-rs-dc8b478bbfee1278/d93e34a/src/parser.rs:251:31 2 2018-10-28 2022-08-22