Skip to content

Pool and reuse OwnedLayer objects when possible based on the recycle api in OwnedLayerManager - #3409

Open
Apolo (ApoloApps) wants to merge 5 commits into
JetBrains:jb-mainfrom
ApoloApps:forkLeftoversPerf
Open

Apolo (ApoloApps) wants to merge 5 commits into
JetBrains:jb-mainfrom
ApoloApps:forkLeftoversPerf

Conversation

@ApoloApps

@ApoloApps Apolo (ApoloApps) commented Sep 10, 2026

Copy link
Copy Markdown

Pools an reuses Ownedlayer objects in RootNodeOwner aligning with Android. WeakCache is copied from Android for Jvm and similar but customized for all other nonJvm. The recycle API in OwnedLayerManager was not being used, and new OwnedLayer objects were being created every time when they can be reused. Tested with logging in the web demo and it seems to create new layers at first but then starts reusing pooled ones when enough in the cache

Fixes https://youtrack.jetbrains.com/issue/CMP-10777/Pool-and-reuse-OwnedLayer-objects-when-possible-based-on-the-recycle-api-in-OwnedLayerManager

Release Notes

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant