Avatar for the oxc-project user
oxc-project
oxc-sourcemap
BlogDocsChangelog

perf(visualizer): fix O(n²) chars().nth scan and reduce allocations

#344Merged
Comparing
perf/visualizer-and-token-accessors
(
6d20ba6
) with
main
(
55ebb8e
)
CodSpeed Performance Gauge
0%
Untouched
16
Skipped
5

Benchmarks

5 total
to_json_string
benches/simple.rs::sourcemap::bench::SourceMap
Skipped
4.8 µs*
from_json_string
benches/simple.rs::sourcemap::bench::SourceMap
Skipped
16.3 µs*
generate_lookup_table
benches/simple.rs::sourcemap::bench::SourceMap
Skipped
1.3 µs*
add_name_add_source_and_content
benches/simple.rs::sourcemap::bench::SourceMapBuilder
Skipped
1.6 µs*
to_json
benches/simple.rs::sourcemap::bench::SourceMap
Skipped
5.6 µs*

Commits

Click on a commit to change the comparison range
Base
main
55ebb8e
0%
perf(visualizer): fix O(n²) chars().nth scan and reduce allocations
6d20ba6
22 hours ago
by Boshen
© 2026 CodSpeed Technology
Home Terms Privacy Docs