Skip to content

perf(manger): Revert "perf(manger): remove useless tmp_bindings (#8735)"#8741

Merged
graphite-app[bot] merged 1 commit intomainfrom
01-27-revert_perf_manger_remove_useless_tmp_bindings_8735_
Jan 27, 2025
Merged

perf(manger): Revert "perf(manger): remove useless tmp_bindings (#8735)"#8741
graphite-app[bot] merged 1 commit intomainfrom
01-27-revert_perf_manger_remove_useless_tmp_bindings_8735_

Conversation

@Dunqing
Copy link
Member

@Dunqing Dunqing commented Jan 27, 2025

#8735 removes tmp_bindings and then calls Iterator::sorted_unstabled instead, I thought it ideal but after I saw performance regression, I looked at sorted_unstabled's implementation, and it will cause an allocation every run, but tmp_bindings only allocate once, then clear and reuse it in that loop.

Copy link
Member Author

Dunqing commented Jan 27, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codspeed-hq
Copy link

codspeed-hq bot commented Jan 27, 2025

CodSpeed Performance Report

Merging #8741 will improve performances by 4.05%

Comparing 01-27-revert_perf_manger_remove_useless_tmp_bindings_8735_ (2e4ff91) with main (e85827b)

Summary

⚡ 2 improvements
✅ 31 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
mangler[antd.js] 16.7 ms 16.1 ms +4.05%
mangler[react.development.js] 305.9 µs 296.4 µs +3.19%

@Dunqing Dunqing force-pushed the 01-27-revert_perf_manger_remove_useless_tmp_bindings_8735_ branch from abd3297 to 937d576 Compare January 27, 2025 02:36
@Dunqing Dunqing marked this pull request as ready for review January 27, 2025 02:48
@Dunqing Dunqing changed the title Revert "perf(manger): remove useless tmp_bindings (#8735)" perf(manger): Revert "perf(manger): remove useless tmp_bindings (#8735)" Jan 27, 2025
@github-actions github-actions bot added the C-performance Category - Solution not expected to change functional behavior, only performance label Jan 27, 2025
@Dunqing Dunqing requested a review from Boshen January 27, 2025 02:49
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Jan 27, 2025
Copy link
Member

Boshen commented Jan 27, 2025

Merge activity

  • Jan 26, 10:43 PM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jan 26, 10:44 PM EST: A user added this pull request to the Graphite merge queue.
  • Jan 26, 10:49 PM EST: A user merged this pull request with the Graphite merge queue.

…" (#8741)

#8735 removes `tmp_bindings` and then calls `Iterator::sorted_unstabled` instead, I thought it ideal but after I saw performance regression, I looked at `sorted_unstabled`'s implementation, and it will cause an allocation every run, but `tmp_bindings` only allocate once, then clear and reuse it in that loop.
@Boshen Boshen force-pushed the 01-27-revert_perf_manger_remove_useless_tmp_bindings_8735_ branch from 937d576 to 2e4ff91 Compare January 27, 2025 03:44
@graphite-app graphite-app bot merged commit 2e4ff91 into main Jan 27, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 01-27-revert_perf_manger_remove_useless_tmp_bindings_8735_ branch January 27, 2025 03:49
@oxc-bot oxc-bot mentioned this pull request Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue C-performance Category - Solution not expected to change functional behavior, only performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants