Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not use states for layer invalidation without new layers #1627

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

MatkovIvan
Copy link
Member

@MatkovIvan MatkovIvan commented Oct 9, 2024

Fixes https://youtrack.jetbrains.com/issue/CMP-6877/Do-not-use-states-for-layer-invalidation-without-new-layers

Disable state tracking for old internal layers if there is no need to do so (no active new layers).
It's considered as a temporary solution for 1.7.x

It's probably better to wait @igordmn before merging

Testing

Run LazyGrid benchmark

@MatkovIvan MatkovIvan requested a review from pjBooms October 9, 2024 13:28
@pjBooms pjBooms requested a review from igordmn October 17, 2024 11:15
@igordmn igordmn merged commit 619dafa into jb-main Nov 1, 2024
6 checks passed
@igordmn igordmn deleted the ivan.matkov/state-under-if branch November 1, 2024 11:18
igordmn pushed a commit that referenced this pull request Nov 1, 2024
Fixes
https://youtrack.jetbrains.com/issue/CMP-6877/Do-not-use-states-for-layer-invalidation-without-new-layers

Disable state tracking for old internal layers if there is no need to do
so (no active new layers).
It's considered as a temporary solution for 1.7.x

It's probably better to wait @igordmn before merging

## Testing
Run [LazyGrid
benchmark](https://github.com/JetBrains/compose-multiplatform/blob/master/benchmarks/ios/jvm-vs-kotlin-native/src/commonMain/kotlin/benchmarks/lazygrid/LazyGrid.kt)
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.

3 participants