-
Notifications
You must be signed in to change notification settings - Fork 14
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
ftrace: improve binary parser speed by optimizing I/O #31
ftrace: improve binary parser speed by optimizing I/O #31
Conversation
8838680
to
352b4a1
Compare
This is still WIP. I know your approach will work, we didn't have time to get it done. (We start by coding defensively, then optimize) This will be great, please remove the printlns though ;) |
352b4a1
to
b4230f4
Compare
missed that one :-), removed the println. |
b4230f4
to
eff5a6f
Compare
Hi, is something missing in the PR for review? |
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.
Missed the update, sorry!
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.
This change looks great, there is just one more change needed and then I will approve it 😄
super.dispose(); | ||
// release (indirect) references to mem-mapped file buffers so that tracecompass | ||
// can garbage-collect them and unlock the file (e.g. if the user wants to delete it) | ||
fStrategy = null; |
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.
There should be a dispose method in the IBinaryFTraceStrategy that does this for the BinaryFTraceV6Strategy.
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 the review, done: I moved the clearing of the reference to the strategy class.
I did not go deeper in the structure, let me know if it's good like this.
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.
seems I broke something with that, need to look into it :-)
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.
The change is perfect, it just needs to pass the test now :)
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.
Seems like it needs a null check before calling dispose().
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 the hint! Took me a while to find the right logs
eff5a6f
to
6df91ee
Compare
* mmap the whole file for faster parsing * re-use the same mapping to read events Signed-off-by: Fabrizio Iannetti <[email protected]>
6df91ee
to
6cb47a5
Compare
286f29e
into
eclipse-tracecompass-incubator:master
@fabrizioiannetti thank you so much for the contribution! |
on my (oldish) laptop with ubuntu 24.04 the file is parsed an order of magnitude faster
on a recent windows laptop I measured two orders of magnitude faster