Skip to content

feat(data_structures)!: put all parts behind features#9849

Merged
graphite-app[bot] merged 1 commit intomainfrom
03-18-feat_data_structures_put_all_parts_behind_features
Mar 18, 2025
Merged

feat(data_structures)!: put all parts behind features#9849
graphite-app[bot] merged 1 commit intomainfrom
03-18-feat_data_structures_put_all_parts_behind_features

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Mar 18, 2025

Put all parts of oxc_data_structures crate behind features.

oxc_data_structures is intended to be a "kitchen sink" crate where any data structures which are shared between multiple crates can go. We want to avoid having tons of little crates oxc_rope, oxc_stack etc. But this means it'll inevitably grow over time, and that will impact compile times.

Feature-gating each part of the crate should prevent compile times suffering as oxc_data_structures grows.

The immediate benefit is it removes the ropey dependency from oxc_ast and various other crates.

Copy link
Member Author


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.

@github-actions github-actions bot added A-semantic Area - Semantic A-minifier Area - Minifier A-ast Area - AST A-transformer Area - Transformer / Transpiler A-codegen Area - Code Generation A-editor Area - Editor and Language Server C-enhancement Category - New feature or request labels Mar 18, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 18, 2025

CodSpeed Performance Report

Merging #9849 will not alter performance

Comparing 03-18-feat_data_structures_put_all_parts_behind_features (b3ce925) with main (3f808cb)

Summary

✅ 33 untouched benchmarks

@overlookmotel overlookmotel marked this pull request as ready for review March 18, 2025 05:54
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Mar 18, 2025
Copy link
Member

Boshen commented Mar 18, 2025

Merge activity

  • Mar 18, 2:41 AM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Mar 18, 2:41 AM EDT: A user added this pull request to the Graphite merge queue.
  • Mar 18, 2:57 AM EDT: A user merged this pull request with the Graphite merge queue.

Put all parts of `oxc_data_structures` crate behind features.

`oxc_data_structures` is intended to be a "kitchen sink" crate where any data structures which are shared between multiple crates can go. We want to avoid having tons of little crates `oxc_rope`, `oxc_stack` etc. But this means it'll inevitably grow over time, and that will impact compile times.

Feature-gating each part of the crate should prevent compile times suffering as `oxc_data_structures` grows.

The immediate benefit is it removes the `ropey` dependency from `oxc_ast` and various other crates.
@graphite-app graphite-app bot force-pushed the 03-18-feat_data_structures_put_all_parts_behind_features branch from 4e6a4e5 to b3ce925 Compare March 18, 2025 06:48
@graphite-app graphite-app bot merged commit b3ce925 into main Mar 18, 2025
30 checks passed
@graphite-app graphite-app bot deleted the 03-18-feat_data_structures_put_all_parts_behind_features branch March 18, 2025 06:57
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Mar 18, 2025
Boshen pushed a commit that referenced this pull request Mar 19, 2025
…nabled (#9882)

#9849 put all parts of `oxc_data_structures` behind features. I
neglected to make Miri run on the crate with all those features
activated, so it was skipping all the tests. Fix that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast Area - AST A-codegen Area - Code Generation A-editor Area - Editor and Language Server A-minifier Area - Minifier A-semantic Area - Semantic A-transformer Area - Transformer / Transpiler C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants