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

Fix string pool lookup performance #97

Merged
merged 5 commits into from
Oct 30, 2024

Conversation

josephbirkner
Copy link
Member

The naive lookup using a lower-case string copy is now really starting to impact performance during model building quite badly. So, here is a fix 😄

Copy link

github-actions bot commented Oct 24, 2024

Test Results

 1 files  ±0   1 suites  ±0   3m 12s ⏱️ +13s
36 tests ±0  36 ✅ ±0  0 💤 ±0  0 ❌ ±0 
37 runs  ±0  37 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9363b22. ± Comparison against base commit df13808.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@johannes-wolf johannes-wolf left a comment

Choose a reason for hiding this comment

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

LGTM.

src/model/string-pool.cpp Show resolved Hide resolved
src/model/string-pool.cpp Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Oct 29, 2024

Copy link

Package Line Rate Branch Rate Health
include.simfil 64% 47%
include.simfil.model 87% 61%
src 72% 41%
src.model 83% 51%
Summary 74% (2141 / 2875) 44% (1776 / 4017)

Minimum allowed line rate is 50%

Copy link
Collaborator

@johannes-wolf johannes-wolf left a comment

Choose a reason for hiding this comment

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

🏃 🥇

@johannes-wolf johannes-wolf added the enhancement 🌟 New feature or request label Oct 30, 2024
@josephbirkner josephbirkner merged commit a269453 into main Oct 30, 2024
9 checks passed
@josephbirkner josephbirkner deleted the string-pool-lookup-performance branch October 30, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🌟 New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants