diff --git a/.changeset/split-into-potential-tokens-lookup-table.md b/.changeset/split-into-potential-tokens-lookup-table.md deleted file mode 100644 index a9b07d0..0000000 --- a/.changeset/split-into-potential-tokens-lookup-table.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"webpack-sources": patch ---- - -perf: use lookup table in splitIntoPotentialTokens for faster character classification - -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. diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f132f6..d44c074 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index 8acf2d9..2503b94 100644 --- a/package.json +++ b/package.json @@ -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" @@ -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 .",