GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore(release): new release (#245) · webpack/webpack-sources@210e0a4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .changeset
    • original-source-stream-potential-tokens.md
    • perf-mappings-writer-replace-final-source.md
    • replace-source-skip-presorted-sort.md
    • split-into-potential-tokens-lookup-table.md
  • CHANGELOG.md
  • package.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.changeset/original-source-stream-potential-tokens.md‎

Copy file name to clipboardExpand all lines: .changeset/original-source-stream-potential-tokens.md
-7Lines changed: 0 additions & 7 deletions
This file was deleted.
Collapse file

‎.changeset/perf-mappings-writer-replace-final-source.md‎

Copy file name to clipboardExpand all lines: .changeset/perf-mappings-writer-replace-final-source.md
-5Lines changed: 0 additions & 5 deletions
This file was deleted.
Collapse file

‎.changeset/replace-source-skip-presorted-sort.md‎

Copy file name to clipboardExpand all lines: .changeset/replace-source-skip-presorted-sort.md
-5Lines changed: 0 additions & 5 deletions
This file was deleted.
Collapse file

‎.changeset/split-into-potential-tokens-lookup-table.md‎

Copy file name to clipboardExpand all lines: .changeset/split-into-potential-tokens-lookup-table.md
-7Lines changed: 0 additions & 7 deletions
This file was deleted.
Collapse file

‎CHANGELOG.md‎

Copy file name to clipboardExpand all lines: CHANGELOG.md
+16Lines changed: 16 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# webpack-sources
22

3+
## 3.5.1
4+
5+
### Patch Changes
6+
7+
- perf: stream potential tokens in OriginalSource instead of materialising an array (by [@alexander-akait](https://github.com/alexander-akait) in [#246](https://github.com/webpack/webpack-sources/pull/246))
8+
9+
`OriginalSource.streamChunks` (and therefore `map()` / `sourceAndMap()`) previously built the full `splitIntoPotentialTokens` array of substrings and then iterated it — even though `map()` and `sourceAndMap()` run with `finalSource: true` and discard every chunk substring. The scan is now streamed by offset, so chunk substrings are only allocated when actually emitted. This removes the intermediate array and, on the dominant final-source paths, all per-token slices: `map()` / `sourceAndMap()` allocate ~38–46% less memory and run ~15–40% faster.
10+
11+
- Reduce allocations and CPU in `map()` / `sourceAndMap()`: mappings are serialized into a reused byte buffer instead of per-mapping strings, `ReplaceSource` verifies original content through a line-offset index instead of splitting sources into line arrays, and `ReplaceSource.streamChunks` emits position-only chunks and returns the final source directly when `finalSource` is requested. (by [@alexander-akait](https://github.com/alexander-akait) in [#251](https://github.com/webpack/webpack-sources/pull/251))
12+
13+
- Skip sorting ReplaceSource replacements when they were added in order. (by [@alexander-akait](https://github.com/alexander-akait) in [#249](https://github.com/webpack/webpack-sources/pull/249))
14+
15+
- perf: use lookup table in splitIntoPotentialTokens for faster character classification (by [@xiaoxiaojx](https://github.com/xiaoxiaojx) in [#240](https://github.com/webpack/webpack-sources/pull/240))
16+
17+
Replace multi-comparison chains (4 comparisons in phase 1, 6 in phase 2) with a single Uint8Array bitmask lookup per character. This reduces per-character branching overhead, yielding ~7% improvement on typical source and ~21% on large sources.
18+
319
## 3.5.0
420

521
### Minor Changes
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+9-3Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"name": "webpack-sources",
3-
"version": "3.5.0",
3+
"version": "3.5.1",
44
"description": "Source code handling classes for webpack",
5-
"keywords": ["webpack", "source-map"],
5+
"keywords": [
6+
"webpack",
7+
"source-map"
8+
],
69
"homepage": "https://github.com/webpack/webpack-sources#readme",
710
"bugs": {
811
"url": "https://github.com/webpack/webpack-sources/issues"
@@ -15,7 +18,10 @@
1518
"author": "Tobias Koppers @sokra",
1619
"main": "lib/index.js",
1720
"types": "types.d.ts",
18-
"files": ["lib/", "types.d.ts"],
21+
"files": [
22+
"lib/",
23+
"types.d.ts"
24+
],
1925
"scripts": {
2026
"lint": "npm run lint:code && npm run lint:types && npm run lint:types-test && npm run lint:special",
2127
"lint:code": "eslint --cache .",

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.