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

Consume less CPU for text field cursor blinking #1113

Closed
wants to merge 0 commits into from

Conversation

m-sasha
Copy link

@m-sasha m-sasha commented Feb 16, 2024

...by using pure coroutines (delay) to implement it. Running it as an animation unnecessarily consumes CPU time.

Proposed Changes

Testing

Test: Added tests to verify that they don't hang.

Issues Fixed

Fixes: JetBrains/compose-multiplatform#4225

@m-sasha m-sasha requested a review from igordmn February 16, 2024 14:12
@m-sasha m-sasha force-pushed the m-sasha/textfield-caret-performance branch from eacc9a9 to 72a23a9 Compare February 16, 2024 17:09
Copy link
Collaborator

@igordmn igordmn left a comment

Choose a reason for hiding this comment

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

Could you please push the branch to jb-main instead of GitHub squashing?

@m-sasha
Copy link
Author

m-sasha commented Feb 21, 2024

Done

@m-sasha m-sasha closed this Feb 21, 2024
@m-sasha m-sasha force-pushed the m-sasha/textfield-caret-performance branch from 72a23a9 to bd3da25 Compare February 21, 2024 10:19
@m-sasha m-sasha deleted the m-sasha/textfield-caret-performance branch February 21, 2024 10:19
@m-sasha m-sasha added the changelog1.6.1 Temporary label for 1.6.1 changelog (will be removed) label Mar 12, 2024
@m-sasha m-sasha changed the title Use pure coroutines (delay) to implement text field cursor blinking Consume less CPU for text field cursor blinking by using pure coroutines (delay) to implement it Mar 12, 2024
@m-sasha m-sasha changed the title Consume less CPU for text field cursor blinking by using pure coroutines (delay) to implement it Consume less CPU for text field cursor blinking Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog1.6.1 Temporary label for 1.6.1 changelog (will be removed)
Projects
None yet
2 participants