-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
more efficient node.js process startup #7661
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
7 Ignored Deployments
|
🟢 Turbopack Benchmark CI successful 🟢Thanks |
Logs
See job summary for details |
|
let expected_completed_task_until_full_workers = { | ||
let millis = max(1, warm_process_time.as_millis()); | ||
let ready_workers = workers - booting_workers; | ||
(expected_full_workers_in.as_millis() / millis) as u32 * ready_workers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it better to multiply first before dividing? (Not important as the numbers are millis, which are not very small)
# Turbopack * vercel/turborepo#7719 <!-- Tobias Koppers - accept css files outside of the project as virtual assets --> * vercel/turborepo#7661 <!-- Tobias Koppers - more efficient node.js process startup --> * vercel/turborepo#7720 <!-- Tobias Koppers - generate correct async module handling for side effects optimization --> * vercel/turborepo#7718 <!-- Donny/강동윤 - fix(turbopack): Fix CSS Modules class name for lightningcss mode --> ### What? Update tests to make CSS Modules of `lightningcss` work with CSS grids. ### Why? `lightningcss` enforces the class name to end with `[local]`. See: https://lightningcss.dev/css-modules.html#css-grid ### How? Closes PACK-2731
### Description * Slow start for the concurrency of parallel booting node.js processes (1, 2, 4, ...) * Depending on historic statistics avoid booting up a new process, but wait for one to finish computing Loading the `/home` route on 16-core machine Before: ``` 16 x Node.js process startup 9.09s avg 568.07ms 16 x Node.js initialization 10.58s avg 660.96ms 276 x Node.js evaluation 30.17s avg 109.30ms ``` After: ``` 7 x Node.js process startup 1261.79ms avg 180.26ms 7 x Node.js initialization 3.15s avg 450.21ms 276 x Node.js evaluation 29.41s avg 106.55ms ``` ### Testing Instructions <!-- Give a quick description of steps to test your changes. --> Closes PACK-2680
### Description * Slow start for the concurrency of parallel booting node.js processes (1, 2, 4, ...) * Depending on historic statistics avoid booting up a new process, but wait for one to finish computing Loading the `/home` route on 16-core machine Before: ``` 16 x Node.js process startup 9.09s avg 568.07ms 16 x Node.js initialization 10.58s avg 660.96ms 276 x Node.js evaluation 30.17s avg 109.30ms ``` After: ``` 7 x Node.js process startup 1261.79ms avg 180.26ms 7 x Node.js initialization 3.15s avg 450.21ms 276 x Node.js evaluation 29.41s avg 106.55ms ``` ### Testing Instructions <!-- Give a quick description of steps to test your changes. --> Closes PACK-2680
### Description * Slow start for the concurrency of parallel booting node.js processes (1, 2, 4, ...) * Depending on historic statistics avoid booting up a new process, but wait for one to finish computing Loading the `/home` route on 16-core machine Before: ``` 16 x Node.js process startup 9.09s avg 568.07ms 16 x Node.js initialization 10.58s avg 660.96ms 276 x Node.js evaluation 30.17s avg 109.30ms ``` After: ``` 7 x Node.js process startup 1261.79ms avg 180.26ms 7 x Node.js initialization 3.15s avg 450.21ms 276 x Node.js evaluation 29.41s avg 106.55ms ``` ### Testing Instructions <!-- Give a quick description of steps to test your changes. --> Closes PACK-2680
### Description * Slow start for the concurrency of parallel booting node.js processes (1, 2, 4, ...) * Depending on historic statistics avoid booting up a new process, but wait for one to finish computing Loading the `/home` route on 16-core machine Before: ``` 16 x Node.js process startup 9.09s avg 568.07ms 16 x Node.js initialization 10.58s avg 660.96ms 276 x Node.js evaluation 30.17s avg 109.30ms ``` After: ``` 7 x Node.js process startup 1261.79ms avg 180.26ms 7 x Node.js initialization 3.15s avg 450.21ms 276 x Node.js evaluation 29.41s avg 106.55ms ``` ### Testing Instructions <!-- Give a quick description of steps to test your changes. --> Closes PACK-2680
Description
Loading the
/home
route on 16-core machineBefore:
After:
Testing Instructions
Closes PACK-2680