Skip to content

Commit 9ba26cd

Browse files
authored
perf: faster substring of rspack-sources (#8731)
* perf: init * perf: update
1 parent 9b29b0d commit 9ba26cd

File tree

16 files changed

+47
-47
lines changed

16 files changed

+47
-47
lines changed

β€ŽCargo.lockβ€Ž

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€ŽCargo.tomlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ rayon = { version = "1.10.0" }
6464
regex = { version = "1.11.1" }
6565
ropey = "1.6.1"
6666
rspack_resolver = { version = "0.3.6", features = ["package_json_raw_json_api"] }
67-
rspack_sources = { version = "0.4.0" }
67+
rspack_sources = { version = "0.4.1" }
6868
rustc-hash = { version = "2.1.0" }
69-
serde = { version = "1.0.215" }
69+
serde = { version = "1.0.216" }
7070
serde_json = { version = "1.0.133" }
7171
simd-json = { version = "0.14.0-rc.2" }
7272
smol_str = { version = "0.3.0" }

β€Žpackages/rspack-test-tools/tests/__snapshots__/StatsAPI.test.js.snapβ€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Object {
4949
main.js,
5050
],
5151
filteredModules: undefined,
52-
hash: 03ac15d52ac8f99a,
52+
hash: 6e63c93280ecf7f7,
5353
id: 909,
5454
idHints: Array [],
5555
initial: true,
@@ -173,7 +173,7 @@ Object {
173173
errorsCount: 0,
174174
filteredAssets: undefined,
175175
filteredModules: undefined,
176-
hash: 25fb71d3c0e584fa,
176+
hash: fbda3282340b27ec,
177177
modules: Array [
178178
Object {
179179
assets: Array [],
@@ -318,7 +318,7 @@ Object {
318318
main.js,
319319
],
320320
filteredModules: undefined,
321-
hash: 24d8ec2f7276d780,
321+
hash: 6ce6ff107a4c39c2,
322322
id: 909,
323323
idHints: Array [],
324324
initial: true,
@@ -685,7 +685,7 @@ Object {
685685
errorsCount: 0,
686686
filteredAssets: undefined,
687687
filteredModules: undefined,
688-
hash: c9ae05e2791de1df,
688+
hash: 827e507540787a7e,
689689
modules: Array [
690690
Object {
691691
assets: Array [],
@@ -1449,7 +1449,7 @@ Object {
14491449
files: Array [
14501450
main.js,
14511451
],
1452-
hash: 03ac15d52ac8f99a,
1452+
hash: 6e63c93280ecf7f7,
14531453
id: 909,
14541454
idHints: Array [],
14551455
initial: true,
@@ -1589,7 +1589,7 @@ Object {
15891589
main.js,
15901590
],
15911591
filteredModules: undefined,
1592-
hash: 9c0983c99ff070fd,
1592+
hash: cb183b73192ba5e0,
15931593
id: 909,
15941594
idHints: Array [],
15951595
initial: true,
@@ -1937,7 +1937,7 @@ exports.c = require("./c?c=3");,
19371937
errorsCount: 0,
19381938
filteredAssets: undefined,
19391939
filteredModules: undefined,
1940-
hash: 7973d0469464a339,
1940+
hash: 19c21d4b968cc3c3,
19411941
modules: Array [
19421942
Object {
19431943
assets: Array [],

β€Žpackages/rspack-test-tools/tests/__snapshots__/StatsOutput.test.js.snapβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ runtime modules 1.61 KiB
5959
[no exports]
6060
[used exports unknown]
6161
62-
Rspack compiled successfully (4d5fa5d34acd771d)
62+
Rspack compiled successfully (9e7a7088bc7f5f5b)
6363
`;
6464

6565
exports[`statsOutput statsOutput/builtin-swc-loader-parse-error should print correct stats for 1`] = `

β€Žpackages/rspack-test-tools/tests/hookCases/compilation#processAssets/update-asset/hooks.snap.txtβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
```javascript
66
Array [
77
Object {
8-
"main.381903af5a0c33ed.js": (() => { // webpackBootstrap
8+
"main.a4b9ef476180b3fb.js": (() => { // webpackBootstrap
99
var __webpack_modules__ = ({
1010
"600": (function (module) {
1111
module.exports = "This is hook"

β€Žpackages/rspack-test-tools/tests/statsAPICases/basic.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = {
3939
entry ./fixtures/a
4040
cjs self exports reference self [585] ./fixtures/a.js
4141
42-
Rspack compiled successfully (25fb71d3c0e584fa)
42+
Rspack compiled successfully (fbda3282340b27ec)
4343
`);
4444
}
4545
};

β€Žpackages/rspack-test-tools/tests/statsAPICases/chunks.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = {
2727
chunkB.js,
2828
],
2929
filteredModules: undefined,
30-
hash: 11045cb6792bbfb1,
30+
hash: cea3fd1b25a4eb4d,
3131
id: 250,
3232
idHints: Array [],
3333
initial: false,
@@ -144,7 +144,7 @@ module.exports = {
144144
main.js,
145145
],
146146
filteredModules: undefined,
147-
hash: 294dacc6fb1d2652,
147+
hash: 582278c180fdbd81,
148148
id: 909,
149149
idHints: Array [],
150150
initial: true,

β€Žtests/plugin-test/css-extract/cases/chunkFilename-fullhash/expected/main.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ __webpack_require__.e = function (chunkId) {
7777
// webpack/runtime/get_full_hash
7878
(() => {
7979
__webpack_require__.h = function () {
80-
return "ae884e9ae01bc3c32ef3";
80+
return "c4e695e4a317b7bf38b8";
8181
};
8282

8383
})();

0 commit comments

Comments
Β (0)