skyyo / samples Goto Github PK
View Code? Open in Web Editor NEWJetpack Compose based project, used to stress-testing compose features / integrations and explore non-trivial functionality
License: MIT License
Jetpack Compose based project, used to stress-testing compose features / integrations and explore non-trivial functionality
License: MIT License
There are 2 ways of fixing it:
We will use the second approach on this project (since it's a lesser evil) until a better solution surfaces.
You can find the class you want to drop in the project in this gist
After that, track all Composables
which take List
, Map
as a param (usually thats all we use but consider other Collections as well) and collect them using collectAsStateWithLifecycleImmutable
instead of collectAsStateWithLifecycle
Always use fastForEach, fastMap, fastFirstOrNull and other API's for optimised iteration through collection, since it doesn't allocate an iterator like forEach
. Beware: never use it with LinkedList
, 3d party libraries or other non-common collections without ensuring it works faster and isn't bugged out.
When UI isn’t visible and collectAsStateWithLifecycle
instead of collectAsState
- flows on the UI layer will stop being collected, thus - freeing up resources. Dependency below is needed to access this new API:
implementation "androidx.lifecycle:lifecycle-runtime-compose:2.6.0-alpha01"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.