-
Notifications
You must be signed in to change notification settings - Fork 2
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
improve efficiency (catch all) #84
Comments
Pre-create strings of the FixedOffset used by SyslineReader. Avoid creating a new String for every sysline processed. Issue #84
Use PfhMap compile-time map from timezone names, e.g. "PST", to timezone values, e.g. "-07:00" Issue #84
Remove inefficient hashset creation/destruction for tracking keys found in `next_short`. Just use local `bool`s. Issue #84
|
Great article comparing thread memory usage. Apparently |
StringZilla looks promising. However, I'd need to review the flamegraph to see where it should be applied. I could apply it everywhere but that's a fair amount of work. So be little smarter about it. Update: benchmarked here. Does well but is not as great as I hoped. |
Compile RegEx on-demand with the help of `once_cell` Issue: #84
After chronotope/chrono#1559 is implemented and released, then https://github.com/jtmoon79/super-speedy-syslog-searcher/blob/0.6.70/src/data/datetime.rs#L5002 should be faster and I don't think any changes will be necessary.
|
This comment moved to it's own Issue #288 A very worthwhile improvement is combining the multiple regular expressions for various numeric timezones into one regular expression. This would significantly reduce the number of hardcoded regular expressions reducing run-time and memory footprint, and simplify some of the code in |
|
looks like it's not possible to pre-compile a
It's possible to pre-compile a
However,
|
Summary
Improve efficiency either as CPU usage or Memory usage. This is a catch-all Issue for efficiency improvements that are too small to merit an individual Issue.
Current behavior
Some implementation could be faster.
Many of these areas are noted with code comment magic word
cost-savings
, likeFor example,
Suggested behavior
Change the implementation to be faster or more efficient.
Other
These changes may violate recommended practice for when to optimize (too much work; too little gain).
The text was updated successfully, but these errors were encountered: