Skip to content

Speed improvement: disassembly caching #6

@yhql

Description

@yhql

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions