Skip to content

refactor(data_structures): share buffered vectors between parsers - #29364

Merged
Boshen merged 1 commit into
perf/parser-arena-allocations-followupfrom
refactor/shared-buffered-vec
Nov 13, 2026
Merged

Boshen merged 1 commit into
perf/parser-arena-allocations-followupfrom
refactor/shared-buffered-vec

Conversation

@Boshen

@Boshen Boshen commented Nov 12, 2026

Copy link
Copy Markdown
Member

Stacked on #29361. Share parser and regex BufferedVec implementations through oxc_data_structures, using an ArenaVec adapter to avoid a dependency cycle.

Allocation statistics and checksums are unchanged across 754,341 corpus files.

AI-assisted.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T01:34:02.190364Z c219870 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added A-parser Area - JS/TS parsing and syntax errors, oxc_parser A-regular-expression Area - Regular expression parsing and validation, oxc_regular_expression A-allocator Area - Arena allocator, oxc_allocator labels Nov 12, 2026
@Boshen
Boshen added this pull request to stack #29362 November 12, 2026 11:41
@codspeed

codspeed Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 91 untouched benchmarks
⏩ 19 skipped benchmarks1


Comparing refactor/shared-buffered-vec (c219870) with perf/parser-arena-allocations-followup (2a60815)

Open in CodSpeed

Footnotes

  1. 19 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@Boshen
Boshen requested a review from Dunqing as a code owner November 12, 2026 15:00
@Boshen
Boshen force-pushed the refactor/shared-buffered-vec branch from 5328151 to 58bd6f9 Compare November 12, 2026 15:00
@Boshen
Boshen force-pushed the refactor/shared-buffered-vec branch from 58bd6f9 to 84b28b2 Compare November 13, 2026 01:27
@Boshen
Boshen force-pushed the refactor/shared-buffered-vec branch from 84b28b2 to 544de81 Compare November 13, 2026 01:29
@Boshen
Boshen force-pushed the refactor/shared-buffered-vec branch from 544de81 to c219870 Compare November 13, 2026 01:32
@Boshen
Boshen merged commit 55bff4a into main Nov 13, 2026
66 of 67 checks passed
@Boshen
Boshen deleted the refactor/shared-buffered-vec branch November 13, 2026 01:56
Boshen added a commit that referenced this pull request Nov 13, 2026
Stacked on #29364. Add batch reservations to BufferedVec while
preserving inline storage and first-spill capacity for heap and arena
backing.

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

Labels

A-allocator Area - Arena allocator, oxc_allocator A-parser Area - JS/TS parsing and syntax errors, oxc_parser A-regular-expression Area - Regular expression parsing and validation, oxc_regular_expression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant