Skip to content

refactor(ast/estree): simplify serializing FormalParameters#9195

Merged
graphite-app[bot] merged 1 commit intomainfrom
02-18-refactor_ast_estree_simplify_serializing_formalparameters_
Feb 18, 2025
Merged

refactor(ast/estree): simplify serializing FormalParameters#9195
graphite-app[bot] merged 1 commit intomainfrom
02-18-refactor_ast_estree_simplify_serializing_formalparameters_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Feb 18, 2025

Simplify the custom Serialize impl for FormalParameters.

This removes the last #[derive(Serialize)] in oxc_ast crate, which means we can turn off serde's derive feature for this crate.

Unfortunately, oxc_ast depends on oxc_span, and that crate still uses #[derive(Deserialize)]. Therefore oxc_ast still has a transitive dependency on serde-derive. But this is a step to removing it, which when we do will greatly improve compile times.

Copy link
Member Author

overlookmotel commented Feb 18, 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.

@github-actions github-actions bot added A-ast Area - AST C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Feb 18, 2025
@overlookmotel overlookmotel marked this pull request as ready for review February 18, 2025 09:24
@codspeed-hq
Copy link

codspeed-hq bot commented Feb 18, 2025

CodSpeed Performance Report

Merging #9195 will not alter performance

Comparing 02-18-refactor_ast_estree_simplify_serializing_formalparameters_ (3236fe4) with main (dde05e3)

Summary

✅ 33 untouched benchmarks

@overlookmotel overlookmotel force-pushed the 02-18-refactor_ast_estree_simplify_serializing_formalparameters_ branch from bace421 to 58fabd2 Compare February 18, 2025 10:11
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Feb 18, 2025
Copy link
Member

Boshen commented Feb 18, 2025

Merge activity

  • Feb 18, 5:31 AM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 18, 5:31 AM EST: A user added this pull request to the Graphite merge queue.
  • Feb 18, 5:43 AM EST: A user merged this pull request with the Graphite merge queue.

Simplify the custom `Serialize` impl for `FormalParameters`.

This removes the last `#[derive(Serialize)]` in `oxc_ast` crate, which means we can turn off `serde`'s `derive` feature for this crate.

Unfortunately, `oxc_ast` depends on `oxc_span`, and that crate still uses `#[derive(Deserialize)]`. Therefore `oxc_ast` still has a transitive dependency on `serde-derive`. But this is a step to removing it, which when we do will greatly improve compile times.
@graphite-app graphite-app bot force-pushed the 02-18-refactor_ast_estree_simplify_serializing_formalparameters_ branch from 58fabd2 to 3236fe4 Compare February 18, 2025 10:36
@graphite-app graphite-app bot merged commit 3236fe4 into main Feb 18, 2025
24 of 25 checks passed
@graphite-app graphite-app bot deleted the 02-18-refactor_ast_estree_simplify_serializing_formalparameters_ branch February 18, 2025 10:43
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 A-ast Area - AST C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants