Skip to content

Conversation

@ttsugriy
Copy link
Contributor

@ttsugriy ttsugriy commented Nov 6, 2025

Summary:
The DecodedArgs constructor was populating the holders_ vector without
pre-allocating space, which could cause multiple reallocations as the
vector grows. This adds a reserve() call before the loop to allocate
space upfront for all elements, improving performance by avoiding
unnecessary allocations and copies.

Differential Revision: D86366246

@netlify
Copy link

netlify bot commented Nov 6, 2025

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 35c20a7
🔍 Latest deploy log https://app.netlify.com/projects/meta-velox/deploys/69162e3395f6030008d6cd58

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 6, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 6, 2025

@ttsugriy has exported this pull request. If you are a Meta employee, you can view the originating Diff in D86366246.

ttsugriy added a commit to ttsugriy/velox that referenced this pull request Nov 6, 2025
…tor#15418)

Summary:

The DecodedArgs constructor was populating the holders_ vector without
pre-allocating space, which could cause multiple reallocations as the
vector grows. This adds a reserve() call before the loop to allocate
space upfront for all elements, improving performance by avoiding
unnecessary allocations and copies.

Differential Revision: D86366246
ttsugriy added a commit to ttsugriy/velox that referenced this pull request Nov 6, 2025
…incubator#15418)

Summary:

The DecodedArgs constructor was populating the holders_ vector without
pre-allocating space, which could cause multiple reallocations as the
vector grows. This adds a reserve() call before the loop to allocate
space upfront for all elements, improving performance by avoiding
unnecessary allocations and copies.

Differential Revision: D86366246
@ttsugriy ttsugriy force-pushed the export-D86366246 branch 2 times, most recently from c8aa1dd to 48ff7c2 Compare November 9, 2025 01:34
ttsugriy added a commit to ttsugriy/velox that referenced this pull request Nov 9, 2025
…incubator#15418)

Summary:

The DecodedArgs constructor was populating the holders_ vector without
pre-allocating space, which could cause multiple reallocations as the
vector grows. This adds a reserve() call before the loop to allocate
space upfront for all elements, improving performance by avoiding
unnecessary allocations and copies.

Differential Revision: D86366246
ttsugriy added a commit to ttsugriy/velox that referenced this pull request Nov 13, 2025
…incubator#15418)

Summary:

The DecodedArgs constructor was populating the holders_ vector without
pre-allocating space, which could cause multiple reallocations as the
vector grows. This adds a reserve() call before the loop to allocate
space upfront for all elements, improving performance by avoiding
unnecessary allocations and copies.

Reviewed By: Yuhta

Differential Revision: D86366246
@ttsugriy ttsugriy changed the title Reserve space for holders_ in DecodedArgs constructor perf: Reserve space for holders_ in DecodedArgs constructor Nov 13, 2025
…incubator#15418)

Summary:

The DecodedArgs constructor was populating the holders_ vector without
pre-allocating space, which could cause multiple reallocations as the
vector grows. This adds a reserve() call before the loop to allocate
space upfront for all elements, improving performance by avoiding
unnecessary allocations and copies.

Reviewed By: Yuhta

Differential Revision: D86366246
@meta-codesync
Copy link

meta-codesync bot commented Nov 14, 2025

This pull request has been merged in 646ea2a.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants