Skip to content

Slicing Performance Improvement #203

Description

@pdamian

I ran a profiling session to pinpoint the key bottlenecks in the slicing algorithm, and found that graph composition accounts for 46% of the total compute time:
2025-09-08-154420

Can we optimize self._inst_graph = nx.compose(self._inst_graph, old_inst_graph) in pop_func?
Maybe by adding nodes and edges directly to the main instruction graph instead of relying to the merging facility of NetworkX? Fixing this bottleneck could potentially halve the slicing time. 🚀

This is the profile used, you can take a look at it yourself on speedscope.app.

Originally posted by @wizche in #200 (review)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestprio lowLow-level priority

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions