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

Performance optimization #36

Merged
merged 3 commits into from Dec 3, 2022
Merged

Performance optimization #36

merged 3 commits into from Dec 3, 2022

Conversation

dkk
Copy link
Owner

@dkk dkk commented Dec 3, 2022

Performance tests results:

  • Same funtionality with HStack and fixed items per line: 28 seconds
  • WrappingHStack before: 44 seconds
  • WrappingHStack after this optimizations: 30 seconds

I don't trust Xcode's performance tests on UI that much, but trusting my own perception: performance has greatly improved and is now quite similar to the performance of using HStack passing fixed items per line.

Fixes #34 & #4 (finally!)

@dkk dkk merged commit 9f5f586 into main Dec 3, 2022
@dkk dkk deleted the feature/performance-optimization branch December 3, 2022 13:57
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.

WrappingHStack causes high CPU usage
1 participant