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

Improved runtime performance by adding build-time optimization options #141

Merged
merged 2 commits into from
Jan 6, 2024

Conversation

buty4649
Copy link
Owner

@buty4649 buty4649 commented Jan 6, 2024

ビルド時に最適化オプションをつけることで高速化します。

# before
❯ time rf -g -q hello /usr/share/dict/american-english

________________________________________________________
Executed in    7.27 secs    fish           external
   usr time    6.14 secs  420.00 micros    6.14 secs
   sys time    0.80 secs    0.00 micros    0.80 secs

# after
❯ time ./build/bin/rf -q -g hello /usr/share/dict/american-english

________________________________________________________
Executed in    1.92 secs    fish           external
   usr time    1.83 secs  192.00 micros    1.83 secs
   sys time    0.00 secs  221.00 micros    0.00 secs

@buty4649 buty4649 merged commit df56c08 into main Jan 6, 2024
8 checks passed
@buty4649 buty4649 deleted the optimize-build branch January 6, 2024 09:08
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.

1 participant