Skip to content

Performance issues with batch decompilation #2791

@sad-dev

Description

@sad-dev

Is your feature request related to a problem? Please describe.
Some of my scripts and plugins rely on decompiling large numbers of functions. I noticed that in particular, decompiling multiple functions at once does not scale past roughly 10 concurrent threads, even when not limited by the processor/memory. To test this, I repurposed the FindPotentialDecompilerProblems.java script to just decompile all functions in a medium sized binary (25k functions), and adjusted the core.override. Decompilation speed basically hits a peak at about 10-12 threads and is noticeably worse with core.override=16 and beyond (although the machine I was testing on has a lot more than 16 cores available)

My best guess is that the decompiler I/O is being the bottleneck here, but any help diagnosing/increasing performance would be most welcome.

Additional context
Ghidra 9.2.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions