-
Notifications
You must be signed in to change notification settings - Fork 183
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
Reduce memory usage when reading JSONL
file
#921
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your pull request,
LGTM.
I added this pull request changes in CHANGELOG. ( 5ace0a7 ) |
Codecov ReportBase: 74.77% // Head: 74.79% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #921 +/- ##
==========================================
+ Coverage 74.77% 74.79% +0.01%
==========================================
Files 24 24
Lines 15758 15776 +18
==========================================
+ Hits 11783 11799 +16
- Misses 3975 3977 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Memory usage decreased very much. Thank you for the PR!
Thank you so much for updating changelog and quick review :) |
What Changed
Box<dyn Iterator>
to makeIterator
the return value of the function.Iterator
istrait
(not structs), so need to be wrapped in aBox
to return from a functionJSONL
format.Evidence
Environment
Benchmark1
Data: OTRF/Security-Datasets apt29/day2 json.
Command:
./hayabusa json-timeline -J -f ../apt29_evals_day2_manual_2020-05-02035409.json -o new2.json --debug
I also verified that there are no diffs between the 2 result files.
Console output
v2.2.0
This PR
Benchmark2
Data: OTRF/Security-Datasets apt29/day1 json.
Command:
./hayabusa json-timeline -J -f ../apt29_evals_day1_manual_2020-05-01225525.json -o out.json --debug
I also verified that there are no diffs between the 2 result files.
I would appreciate it if you could review🙏