next.js
94aea60d - Turbopack: lazily evaluate `obj` for member replacements (#75453)

Commit
1 year ago
Turbopack: lazily evaluate `obj` for member replacements (#75453) Don't even evaluate the left side of `obj.prop` if we know that we don't have anything in the replacement maps that matches `*.prop` anyway. This particular helps in huge files with complex code and also containing many member expressions ``` testing against 0293c96cf32 canary b6f8743ecd 13,75 GB TURBO_ENGINE_READ_ONLY=1 NEXT_TURBOPACK_TRACING= TURBOPACK=1 TURBOPACK_BUILD= 507.86s user 77.80s system 847% cpu 1:09.11 total TURBO_ENGINE_READ_ONLY=1 NEXT_TURBOPACK_TRACING= TURBOPACK=1 TURBOPACK_BUILD= 503.13s user 77.86s system 855% cpu 1:07.90 total mischnic/analyzer-faster-members ed38e94ba2 13,75 GB TURBO_ENGINE_READ_ONLY=1 NEXT_TURBOPACK_TRACING= TURBOPACK=1 TURBOPACK_BUILD= 499.54s user 79.28s system 857% cpu 1:07.51 total TURBO_ENGINE_READ_ONLY=1 NEXT_TURBOPACK_TRACING= TURBOPACK=1 TURBOPACK_BUILD= 498.31s user 76.99s system 855% cpu 1:07.27 total ```
Author
Parents
Loading