Comments (6)
thank you for your detailed report similar issue with #7490, it seems a performance bug of watchpack, can you help provide the input of the slow Function(the x
and regex
value) and help us find whether it's slow in x.replace(/\\/g, "/")
or regexp.test
from rspack.
The regex
is compiled once from the watchOptions.ignored
that I provided, and x
is each of the watched files (45k in my case).
The problem is not the performance of x => regex.test(x)
, but the fact that it is called at least 45k times (see filter()
calls in watch
method).
from rspack.
thanks that's really helpful, and we will consider reuse watch across different compilation
from rspack.
Maybe I can help with it? I thought about some early bailout in packages/rspack/src/Watching.ts
from rspack.
Maybe I can help with it? I thought about some early bailout in
packages/rspack/src/Watching.ts
#7503 (comment) you can try whether this works for you?
from rspack.
Oh, this issue is actually a duplicate of #7490. That one was posted by my colleague :) Let's proceed in that issue.
from rspack.
Related Issues (20)
- [Bug]: Some links on the built with rspack sections dont work on mobile HOT 1
- [Bug]: image in css (css-loader) removes from dev-server after update some file
- [Bug]: The source map is not working on Sentry HOT 30
- [Feature]: hope the bundled output filename and the path injected into the CSS are different HOT 8
- [Feature]: support build performance hint
- [Bug]: Minimizing CSS using lightningcss may shuffle the CSS property order
- [Feature]: Add `loc` to `chunkGroup.origins[]` OR expose import statement source/comments HOT 2
- [Bug]: failed to render template from string: ReferenceError: process is not defined HOT 4
- [Bug]: Chunks hashes calculated with errors HOT 4
- [Bug]: Unable to exclude CSS files from LightningCssMinimizerRspackPlugin or to silence warnings
- Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './compiled/webpack-sources/index' is not defined by "exports" HOT 1
- [Bug]: `this.sourceMap` in the LoaderContext is `false` when using SourceMapDevToolPlugin
- [Bug]: When using a worker with lazyCompilation enabled, a compilation error occurs.
- [Bug]: Rspack does not rebuild when modifying pure type files HOT 1
- [Bug]: license-webpack-plugin will not replace "[name]" in "outputFilename"
- [Bug]: Missing typings for `externals` function (zod types not inferred correctly) HOT 3
- [Tracking]: Could not find any entry module, please make sure that src/index.(ts|js|tsx|jsx|mjs|cjs) exists, or customize entry through the source.entry configuration. HOT 1
- [Bug]: broken caused by `@rspack/lite-tabable` reading a property from `undefined` HOT 1
- [Bug]: The progress bar did not reach 100% after the compilation was completed
- [Bug]: [content-hash] changes when building same image twice HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspack.