8000 Improve performance of looking up signatures. by cookiemon · Pull Request #2 · apekros/binja_sigmaker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Improve performance of looking up signatures. #2

Merged
merged 2 commits into from
Jul 13, 2022
Merged

Improve performance of looking up signatures. #2

merged 2 commits into from
Jul 13, 2022

Conversation

cookiemon
Copy link
Contributor
@cookiemon cookiemon commented Jul 1, 2022

Turns out iterating byte-wise through a huge binary in python is very
slow.

Singular data point for a call to get_addr_from_sig for a signature on a
40 MB binary with ~125k functions:

runtime in [s] old new
sig in binary 44.74 0.92
sig not in binary 167.23 4.42

cookiemon added 2 commits July 2, 2022 01:29
Turns out iterating byte-wise through a huge binary in python is very
slow.

Singular data point for a call to get_addr_from_sig for a signature on a
40 MB binary with ~125k functions:

runtime in [s]     |     old |  new
-------------------+---------+-------
sig in binary      |  44.74  | 0.92
-------------------+---------+-------
sig not in binary  | 167.23  | 4.42
@apekros apekros merged commit bc0258b into apekros:master Jul 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0