rspack icon indicating copy to clipboard operation
rspack copied to clipboard

perf: cache swc loader

Open CPunisher opened this issue 5 months ago • 4 comments

Summary

Checklist

Assume:

  1. Creating an SwcLoaderJsOptions is costly
  2. Most modules are created with same swc loader options

Cost:

  1. RwLock and concurrent runtime. Maybe there is a better cache strategy.

🙏 Help me run the benchmark.

  • [x] Tests updated (or not required).
  • [x] Documentation updated (or not required).

CPunisher avatar Sep 24 '24 11:09 CPunisher