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

Minor optimizations to widget.Entry #4518

Merged
merged 2 commits into from
Jan 6, 2024

Conversation

Jacalz
Copy link
Member

@Jacalz Jacalz commented Jan 6, 2024

Description:

Nothing big. Avoided casting each rectangle twice, moved the selection color lookup to outside of the loop and avoided a potential race condition.

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

@coveralls
Copy link

coveralls commented Jan 6, 2024

Coverage Status

coverage: 64.547% (+0.006%) from 64.541%
when pulling 792b8de on Jacalz:entry-interface-cast
into 484a4bb on fyne-io:develop.

andydotxyz
andydotxyz previously approved these changes Jan 6, 2024
dweymouth
dweymouth previously approved these changes Jan 6, 2024
@Jacalz Jacalz dismissed stale reviews from dweymouth and andydotxyz via 792b8de January 6, 2024 16:39
@Jacalz Jacalz changed the title Minor optimization to widget.Entry Minor optimizations to widget.Entry Jan 6, 2024
@Jacalz Jacalz requested a review from dweymouth January 6, 2024 16:41
@Jacalz
Copy link
Member Author

Jacalz commented Jan 6, 2024

I pushed a new commit to optimize further and fix a race condition. Sorry folk, it needs a re-approval :)

@Jacalz Jacalz merged commit b49d90c into fyne-io:develop Jan 6, 2024
11 checks passed
@Jacalz Jacalz deleted the entry-interface-cast branch January 6, 2024 18:10
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.

4 participants