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

Don't skip entries with a zero address #182

Merged
merged 2 commits into from
Jul 4, 2020
Merged

Conversation

philipc
Copy link
Contributor

@philipc philipc commented Jul 3, 2020

Also fix FrameIter to handle a missing location (just something I noticed when testing each of the skips individually).

Fixes #174 (cc @mstange)

While these are typically invalid in executables, they are commonly found in
object files.

The extra parsing is a signifcant slowdown when parsing all inlined
functions, but that isn't something that is done in practice.

 name                                        before ns/iter  after ns/iter  diff ns/iter  diff %  speedup
 context_new_and_query_location_rc           2,934,098       2,974,950            40,852   1.39%   x 0.99
 context_new_and_query_location_slice        1,095,621       1,088,575            -7,046  -0.64%   x 1.01
 context_new_and_query_with_functions_rc     3,015,372       2,937,087           -78,285  -2.60%   x 1.03
 context_new_and_query_with_functions_slice  1,113,536       1,106,034            -7,502  -0.67%   x 1.01
 context_new_parse_functions_rc              24,044,280      24,155,066          110,786   0.46%   x 1.00
 context_new_parse_functions_slice           18,419,484      18,677,813          258,329   1.40%   x 0.99
 context_new_parse_inlined_functions_rc      53,407,830      67,349,900       13,942,070  26.10%   x 0.79
 context_new_parse_inlined_functions_slice   40,770,422      52,019,140       11,248,718  27.59%   x 0.78
 context_new_parse_lines_rc                  12,197,122      12,437,465          240,343   1.97%   x 0.98
 context_new_parse_lines_slice               7,708,400       8,106,853           398,453   5.17%   x 0.95
 context_new_rc                              2,451,931       2,487,168            35,237   1.44%   x 0.99
 context_new_slice                           686,375         679,285              -7,090  -1.03%   x 1.01
 context_query_location_rc                   1,024,982       1,041,449            16,467   1.61%   x 0.98
 context_query_location_slice                1,008,474       1,024,442            15,968   1.58%   x 0.98
 context_query_with_functions_rc             2,973,875       3,037,333            63,458   2.13%   x 0.98
 context_query_with_functions_slice          2,670,629       2,663,918            -6,711  -0.25%   x 1.00
@philipc philipc merged commit 067b7df into gimli-rs:master Jul 4, 2020
@philipc philipc deleted the issue-174 branch July 4, 2020 01:13
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.

Many addresses are missing file + line information
1 participant