Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .changeset/split-into-potential-tokens-lookup-table.md

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# webpack-sources

## 3.5.1

### Patch Changes

- 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))

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.

## 3.5.0

### Minor Changes
Expand Down
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "webpack-sources",
"version": "3.5.0",
"version": "3.5.1",
"description": "Source code handling classes for webpack",
"keywords": ["webpack", "source-map"],
"keywords": [
"webpack",
"source-map"
],
"homepage": "https://github.com/webpack/webpack-sources#readme",
"bugs": {
"url": "https://github.com/webpack/webpack-sources/issues"
Expand All @@ -15,7 +18,10 @@
"author": "Tobias Koppers @sokra",
"main": "lib/index.js",
"types": "types.d.ts",
"files": ["lib/", "types.d.ts"],
"files": [
"lib/",
"types.d.ts"
],
"scripts": {
"lint": "npm run lint:code && npm run lint:types && npm run lint:types-test && npm run lint:special",
"lint:code": "eslint --cache .",
Expand Down