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

Dedupe compiler DAG edge insertion for artifacts #2850

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

ferd
Copy link
Collaborator

@ferd ferd commented Dec 11, 2023

Issue described at https://erlangforums.com/t/rebar3-is-taking-longer-to-compile-projects/3061/13

It appears that edge insertion with a label involved messes with the bag table and continuously inflates the size of a DAG after many runs. Since changes are propagated through a graph, frequent changes to often-included header files or parse transforms risk multiplying edge counts.

This little patch ensures that before inserting an artifact edge, we first look whether it already exists; if so we don't add it any further, but keep all other semantics the same.

Issue described at
https://erlangforums.com/t/rebar3-is-taking-longer-to-compile-projects/3061/13

It appears that edge insertion with a label involved messes with the bag
table and continuously inflates the size of a DAG after many runs. Since
changes are propagated through a graph, frequent changes to
often-included header files or parse transforms risk multiplying edge
counts.

This little patch ensures that before inserting an artifact edge, we
first look whether it already exists; if so we don't add it any further,
but keep all other semantics the same.
@ferd ferd merged commit 8f9c872 into erlang:main Dec 19, 2023
5 of 6 checks passed
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.

1 participant