Conversation
This was referenced Mar 19, 2025
perf(allocator/vec2): replace
self.reserve(1) calls with self.grow_one() for better efficiency
#9856
Merged
Member
Author
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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 Instrumentation Performance ReportMerging #9881 will create unknown performance changesComparing Summary
Benchmarks breakdown
|
711ad2e to
834e350
Compare
edee838 to
e637e2e
Compare
32dd4d6 to
063f74f
Compare
425056d to
4c440c8
Compare
1f6b2ac to
bdcbeb4
Compare
ccd4f56 to
f3a1216
Compare
f3a1216 to
6dcd83c
Compare
6dcd83c to
956cc02
Compare
956cc02 to
414dfb2
Compare
8956293 to
204ad53
Compare
204ad53 to
8c63d72
Compare
62e58b2 to
1c729a4
Compare
c03155e to
4a23056
Compare
graphite-app bot
pushed a commit
that referenced
this pull request
Apr 29, 2025
Found while working on #9881, this PR aims to optimize inserting statements by reducing an unnecessary `Vec` allocation. Previously, `get_var_statement` would collect `var` statement and `let` statement into a `std::vec::Vec` and return it, then immediately `extend`/`insert` to another `ArenaVec`. Considering here only have two elements, we don't need to store them in a `Vec`, just return them, and use them depending on how they are used. Seems to have very minor improvement, and I guess `transformer/checker.ts` has 0.1 regression is noisy. <img width="767" alt="image" src="https://github.com/user-attachments/assets/c0aeeb5a-e2da-4e2a-9990-56b239f6ab65" />
Member
Author
|
This is a testing PR, the real work has been done in #10670. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.