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

Speed improvement: disassembly caching #6

Open
yhql opened this issue Oct 16, 2019 · 0 comments
Open

Speed improvement: disassembly caching #6

yhql opened this issue Oct 16, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@yhql
Copy link
Contributor

yhql commented Oct 16, 2019

Currently, each instruction is hooked and passed to capstone for disassembly and analysis of used registers for tracing.

Speed could greatly be improved by caching the results and using capstone for blocks instead of individual instructions (for example during the block hook, cached in some dictionary).

Two problems to manage:

  • Self-modifying code: how to efficiently check and invalidate a cached block
  • when to stop disassembling a block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant