rsnext/test
Tim Neutkens 00106b7ef4
Optimize webpack memory cache garbage collection (#54397)
## What

Adds a reworked version of webpack's [built-in memory cache garbage
collection
plugin](853bfda35a/lib/cache/MemoryWithGcCachePlugin.js (L15))
that is more aggressive in cleaning up unused modules than the default.

The default marks 1/5th of the modules as "up for potentially being
garbage collected". The new plugin always checks all modules. In my
testing this does not cause much overhead compared to the current
approach which leverages writing to two separate maps. The change also
makes the memory cache eviction more predictable: when an item has not
been accessed for 5 compilations it is evicted from the memory cache, it
could still be in the disk cache.


In order to test this change I had to spin up the benchmarks but these
were a bit outdated so I've cleaned up the benchmark applications.

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-08-23 15:46:32 +02:00
..
.stats-app fix: minimum node version 16.14.0 (#54331) 2023-08-22 08:58:53 +00:00
__mocks__ [edge] bump @edge-runtime/* package suite (#49092) 2023-05-31 08:03:20 +00:00
development Optimize webpack memory cache garbage collection (#54397) 2023-08-23 15:46:32 +02:00
e2e Fix not found css not being preloaded while navigation (#53906) 2023-08-23 13:07:30 +00:00
examples feat(cli): introduce --tailwind flag (#46927) 2023-03-16 16:06:27 +01:00
integration Fix data route ordering in dev (#54364) 2023-08-22 10:19:54 -07:00
lib fix: improve error message when output: export in app router (#54202) 2023-08-21 14:45:00 +00:00
production fix process.env not being available in standalone mode (#54203) 2023-08-18 16:04:48 +02:00
unit Upgrade precompiled ua-parser-js (#54404) 2023-08-22 23:56:05 +00:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
jest-setup-after-env.ts type check tests (and convert next-test-utils.js to ts) (#51071) 2023-06-23 17:42:50 +00:00
jest.d.ts refactor smooth scroll bailout logic in app navigations (#53186) 2023-07-27 14:39:51 +00:00
readme.md refactor: split up CONTRIBUTING.md (#40515) 2022-09-16 14:54:58 -07:00
test-file.txt
turbopack-tests-manifest.js enable more test cases for next.rs api (#53670) 2023-08-07 15:17:23 +02:00

See Testing for more information on how you can run/write/debug tests for Next.js.