Skip to content

Conversation

@Boshen
Copy link
Member

@Boshen Boshen commented Sep 27, 2025

🤖 New release

  • oxc_sourcemap: 4.2.0 -> 4.2.1 (✓ API compatible changes)
Changelog

4.2.1 - 2025-09-27

Other

  • reduce memory usage by replacing Vec with Box<[Token]>
  • replace !0 with INVALID_ID constant for better readability (#175)
  • remove outdated comment for TokenChunk


This PR was generated with release-plz.

@graphite-app
Copy link

graphite-app bot commented Sep 27, 2025

How to use the Graphite Merge Queue

Add the label merge to this PR to add it to the merge queue.

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.

@codspeed-hq
Copy link

codspeed-hq bot commented Sep 27, 2025

CodSpeed Performance Report

Merging #174 will improve performances by 2.2%

Comparing release-plz-2025-09-27T09-57-02Z (1005676) with main (86cb878)

Summary

⚡ 3 improvements
✅ 2 untouched

Benchmarks breakdown

Benchmark BASE HEAD Change
generate_lookup_table 1.4 µs 1.3 µs +2.2%
to_json 5.7 µs 5.7 µs +1.03%
add_name_add_source_and_content 1.7 µs 1.6 µs +1.8%

@Boshen Boshen force-pushed the release-plz-2025-09-27T09-57-02Z branch from 09060e5 to f4803c8 Compare September 27, 2025 12:34
Boshen and others added 2 commits September 27, 2025 21:22
Tokens are immutable after building the sourcemap, so we don't need the extra
capacity field from Vec. This saves 8 bytes per SourceMap instance.

For applications with many sourcemaps or large sourcemaps with millions of
tokens, this provides a small but meaningful memory reduction without any
performance impact.

Benchmarks show no performance regression.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@Boshen Boshen force-pushed the release-plz-2025-09-27T09-57-02Z branch from f4803c8 to 03ba61c Compare September 27, 2025 13:23
@Boshen Boshen closed this Sep 27, 2025
@Boshen Boshen deleted the release-plz-2025-09-27T09-57-02Z branch September 27, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants