Avatar for the webpack user
webpack
webpack-sources
BlogDocsChangelog

fix: improve performance in many places

#209Merged
Comparing
claude/perf-improvements-D2ZFm
(
b7b260c
) with
main
(
ccfbc65
)
CodSpeed Performance Gauge
+70%
Improvement
10
Untouched
151

Benchmarks

161 total
helpers/readMappings: fixture (noop callback)
benchmark/cases/helpers-read-mappings/index.bench.mjs
CodSpeed Performance Gauge
+70%
27.5 ms16.1 ms
helpers/readMappings: fixture (counting callback)
benchmark/cases/helpers-read-mappings/index.bench.mjs
CodSpeed Performance Gauge
+60%
1,466.8 µs916.4 µs
source-map-source: streamChunks({columns:false})
benchmark/cases/source-map-source/index.bench.mjs
CodSpeed Performance Gauge
+45%
9.5 ms6.6 ms
source-map-source: streamChunks({finalSource:true})
benchmark/cases/source-map-source/index.bench.mjs
CodSpeed Performance Gauge
+38%
9.9 ms7.1 ms
cached-source: streamChunks() (warm)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
+23%
14.4 ms11.7 ms
source-map-source: streamChunks()
benchmark/cases/source-map-source/index.bench.mjs
CodSpeed Performance Gauge
+23%
14.5 ms11.7 ms
prefix-source: streamChunks() with SourceMapSource child
benchmark/cases/prefix-source/index.bench.mjs
CodSpeed Performance Gauge
+20%
16.3 ms13.6 ms
concat-source: streamChunks() with SourceMapSource child
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
+20%
17.6 ms14.7 ms
source-map-source: streamChunks() (combined inner map)
benchmark/cases/source-map-source/index.bench.mjs
CodSpeed Performance Gauge
+17%
11.7 ms9.9 ms
realistic-source-map-pipeline: streamChunks() (columns off)
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
+11%
7 ms6.3 ms
realistic-source-map-pipeline: streamChunks() (columns on)
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
+6%
11.5 ms10.8 ms
realistic-source-map-pipeline: cold sourceAndMap() (fresh pipeline)
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
+6%
15.5 ms14.6 ms
realistic-source-map-pipeline: cold map() only
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
+6%
15.5 ms14.6 ms
realistic-source-map-pipeline: serialize through getCachedData()
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
+6%
17.3 ms16.4 ms
prefix-source: sourceAndMap()
benchmark/cases/prefix-source/index.bench.mjs
CodSpeed Performance Gauge
+4%
10.7 ms10.3 ms
prefix-source: map()
benchmark/cases/prefix-source/index.bench.mjs
CodSpeed Performance Gauge
+4%
10.7 ms10.3 ms
cached-source: streamChunks() (cold)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
+3%
10 ms9.7 ms
concat-source: sourceAndMap()
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
+3%
21.9 ms21.2 ms
concat-source: map()
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
+3%
22 ms21.3 ms
original-source: map()
benchmark/cases/original-source/index.bench.mjs
CodSpeed Performance Gauge
+3%
19.2 ms18.6 ms
original-source: sourceAndMap()
benchmark/cases/original-source/index.bench.mjs
CodSpeed Performance Gauge
+3%
19.3 ms18.7 ms
replace-source: map() (no replacements)
benchmark/cases/replace-source/index.bench.mjs
CodSpeed Performance Gauge
+3%
19.1 ms18.6 ms
cached-source: sourceAndMap() (cold)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
+3%
19.3 ms18.7 ms
cached-source: getCachedData() then restore
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
+3%
20.6 ms20.1 ms
compat-source: wraps OriginalSource
benchmark/cases/compat-source/index.bench.mjs
CodSpeed Performance Gauge
+2%
35.2 ms34.4 ms

Commits

Click on a commit to change the comparison range
Base
main
ccfbc65
-19.61%
fix: improve performance in many places
a241607
5 months ago
by claude
+89.78%
revert: splitIntoPotentialTokens lookup tables
bc7d55e
5 months ago
by claude
0%
chore: add changelog entry
b7b260c
5 months ago
by alexander-akait
© 2026 CodSpeed Technology
Home Terms Privacy Docs