Replies: 7 comments 6 replies
-
|
Beta Was this translation helpful? Give feedback.
-
nodejs_resolverSee the list of PRs Overall we (with @bvanjoi) have reduced the application time by a constant of 1 to 2 second, and ~10% for large applications.
|
Beta Was this translation helpful? Give feedback.
-
When writing file to disk, the string is currently joined together all at once, which creates a huge memory allocation pressure. Instead, we should just iterate the sources and write it into a BufferWriter to balance the performance around memory allocation and the |
Beta Was this translation helpful? Give feedback.
-
Memory Footprint4.5kiBClone source before parserspack/crates/rspack_plugin_javascript/src/plugin.rs Lines 260 to 265 in 20f0fd9 Why do we need to clone the whole source before parsing? It should be able to take a reference instead. 2.5KiBThis is really heavy: 112 BytesThere's a very frequent allocation here somewhere, but I can't find it. 18.86 MiBIt feels like AST is not dropped at all. |
Beta Was this translation helpful? Give feedback.
-
SWCSWC AST is not fine tuned, for example: ExpressionIs 112 bytes, which puts a lot of allocation pressure all over the place. Some of the enums can be shrink by boxing their attributes, it would be nice if we can get Reallocate in
|
Beta Was this translation helpful? Give feedback.
-
CPUThis is blocking everything for 500ms. |
Beta Was this translation helpful? Give feedback.
-
CPU Utilization |
Beta Was this translation helpful? Give feedback.
-
A summary of perf bottlenecks and findings.
General background research study:
follow the work of https://github.com/nnethercote, read his blog, read the perf book
Beta Was this translation helpful? Give feedback.
All reactions