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

Optimize performance of SelectableLazyColumn #240

Merged
merged 12 commits into from
Nov 3, 2023

Conversation

Walingar
Copy link
Collaborator

@Walingar Walingar commented Nov 2, 2023

I've added some optimizations reducing amount of operations during recomposition.
Also, key events handling is rewritten, taking previous implementation into account, so nothing should be changed, only performance should be optimized.

The only thing that is changed is DefaultSelectableLazyColumnKeyActions#handleOnKeyEvent it was broken in 59ff624. Thought about making separate PR, but since I wrote tests here, it should be fixed.

Copy link
Collaborator

@rock3r rock3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only a couple of comments, then good to go. Thanks for looking into this!

# Conflicts:
#	foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/SelectableColumnOnKeyEvent.kt
#	foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/SelectableLazyColumn.kt
#	foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/SelectableLazyListScope.kt
#	foundation/src/test/kotlin/org/jetbrains/jewel/foundation/lazy/SelectableLazyColumnTest.kt
@rock3r rock3r merged commit 5e0ac3a into main Nov 3, 2023
10 checks passed
@rock3r rock3r deleted the nr/selectable-lazy-column-performance branch November 3, 2023 11:47
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.

2 participants