Skip to content

refactor(span): manually derive Deserialize for CompactStr#9249

Merged
graphite-app[bot] merged 1 commit intomainfrom
02-19-refactor_span_manually_derive_deserialize_for_compactstr_
Feb 20, 2025
Merged

refactor(span): manually derive Deserialize for CompactStr#9249
graphite-app[bot] merged 1 commit intomainfrom
02-19-refactor_span_manually_derive_deserialize_for_compactstr_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Feb 19, 2025

The Deserialize impl for CompactStr is trivial, so write it manually, rather than using serde's heavy proc macro machinery.

This allows disabling the derive feature for serde in oxc_span crate. Many other crates depend on oxc_span, so this chips away at compile times.

@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Feb 19, 2025
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.

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 19, 2025

CodSpeed Performance Report

Merging #9249 will not alter performance

Comparing 02-19-refactor_span_manually_derive_deserialize_for_compactstr_ (007c857) with main (2e2823b)

Summary

✅ 33 untouched benchmarks

@overlookmotel overlookmotel marked this pull request as ready for review February 19, 2025 20:52
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Feb 20, 2025
Copy link
Member

Boshen commented Feb 20, 2025

Merge activity

  • Feb 19, 8:15 PM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 19, 8:15 PM EST: A user added this pull request to the Graphite merge queue.
  • Feb 19, 8:20 PM EST: A user merged this pull request with the Graphite merge queue.

The `Deserialize` impl for `CompactStr` is trivial, so write it manually, rather than using `serde`'s heavy proc macro machinery.

This allows disabling the `derive` feature for `serde` in `oxc_span` crate. Many other crates  depend on `oxc_span`, so this chips away at compile times.
@graphite-app graphite-app bot force-pushed the 02-19-refactor_span_manually_derive_deserialize_for_compactstr_ branch from d359f13 to 007c857 Compare February 20, 2025 01:16
@graphite-app graphite-app bot merged commit 007c857 into main Feb 20, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 02-19-refactor_span_manually_derive_deserialize_for_compactstr_ branch February 20, 2025 01:20
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 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