forked from libbpf/blazesym
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Breakpad file parsing performance
Our breakpad parser supports various CFI directives and other constructs, despite never actually using them. That is partly necessary: we need to recognize them in order to ignore them. However, we don't have to go all the way and parse them correctly. Rather, we can just skip over them more quickly. Adjust the code to do just that. As a result, we are a bit more lenient in what we accept (except for spurious empty lines that we now no longer accept...), but nobody should be using our parser to judge validity of a file, so being more accepting is fine. As a result, we speed up parsing of breakpad files that contain quite significantly: > main/symbolize_breakpad > time: [245.08 ms 245.62 ms 246.20 ms] > change: [−12.182% −11.608% −11.143%] (p = 0.00 < 0.02) > Performance has improved. Signed-off-by: Daniel Müller <deso@posteo.net>
- Loading branch information
Showing
2 changed files
with
8 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters