Skip to content

Refactor Points-To graph merge logic.#92

Merged
pdschubert merged 1 commit intosecure-software-engineering:masterfrom
ddiepo-pjr:OptimizePtMerge
Feb 13, 2020
Merged

Refactor Points-To graph merge logic.#92
pdschubert merged 1 commit intosecure-software-engineering:masterfrom
ddiepo-pjr:OptimizePtMerge

Conversation

@ddiepo-pjr
Copy link
Copy Markdown
Contributor

Changes the merge logic for points-to graph to avoid re-creating the
ValueVertexMap from scratch each time. When merging we can ask boost to
provide a mapping so we can simply append to the existing ValueVertexMap
instead. For large applications this makes a measurable runtime
improvement since the number of merge calls is large.

I verified with a small application which does some virtual function calls that the resulting callgraph before/after this change were identical.

Changes the merge logic for points-to graph to avoid re-creating the
ValueVertexMap from scratch each time.  When merging we can ask boost to
provide a mapping so we can simply append to the existing ValueVertexMap
instead.  For large applications this makes a measurable runtime
improvement since the number of merge calls is large.
@pdschubert pdschubert merged commit 9d3e808 into secure-software-engineering:master Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants