Skip to content

Fixing the performance regression of #76244#76913

Merged
bors merged 1 commit intorust-lang:masterfrom
vandenheuvel:performance_debug
Sep 22, 2020
Merged

Fixing the performance regression of #76244#76913
bors merged 1 commit intorust-lang:masterfrom
vandenheuvel:performance_debug

Conversation

@vandenheuvel
Copy link
Copy Markdown
Contributor

Issue #74865 suggested that removing the def_id field from ParamEnv would improve performance. PR #76244 implemented this change.

Generally, results were as expected: an instruction count decrease of about a percent. The instruction count for the unicode crates increased by about 3%, which @nnethercote speculated to be caused by a quirk of inlining or codegen. As the results were generally positive, and for chalk integration, this was also a step in the right direction, the PR was r+'d regardless.

However, wall-time performance results show a much larger performance degradation: 25%, as mentioned by @Mark-Simulacrum.

This PR, for now, reverts #76244 and attempts to find out, which change caused the regression.

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

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants