Skip to content

fix(node/rolldown): mark all tsfn as weak to avoid long exit time#2135

Merged
hyf0 merged 4 commits intomainfrom
09-03-refactor_remove_hacky_process.exit_0_
Sep 3, 2024
Merged

fix(node/rolldown): mark all tsfn as weak to avoid long exit time#2135
hyf0 merged 4 commits intomainfrom
09-03-refactor_remove_hacky_process.exit_0_

Conversation

@hyf0
Copy link
Copy Markdown
Member

@hyf0 hyf0 commented Sep 3, 2024

Description

Notice that this will break the implementation of ParallelPlugin due to worker doesn't support creating weak tsfn #985 (comment).

Copy link
Copy Markdown
Member Author

hyf0 commented Sep 3, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @hyf0 and the rest of your teammates on Graphite Graphite

@hyf0 hyf0 marked this pull request as ready for review September 3, 2024 05:58
@netlify
Copy link
Copy Markdown

netlify bot commented Sep 3, 2024

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit 985103f
🔍 Latest deploy log https://app.netlify.com/sites/rolldown-rs/deploys/66d6b266e1a29f000820d1ab

@IWANABETHATGUY
Copy link
Copy Markdown
Member

I think this did not solve the problem,

<DIR>/index.js  chunk │ size: 222.05 kB                                                                                                                                                    
                                                                                                                                                                                           
✔ Finished in 153.65 ms                                                                                                                                                                   

________________________________________________________
Executed in    8.41 secs      fish           external
   usr time  581.94 millis  617.00 micros  581.33 millis
   sys time  148.63 millis  189.00 micros  148.44 millis

here is the result in local computer, maybe this is not the right timing to remove the hacky process.exit

@hyf0 hyf0 changed the title refactor: remove hacky process.exit(0) fix(node/rolldown): mark all tsfn as weak to avoid long exit time Sep 3, 2024
@hyf0
Copy link
Copy Markdown
Member Author

hyf0 commented Sep 3, 2024

@IWANABETHATGUY Could you try it again with new commits?

@hyf0 hyf0 added the stale label Sep 3, 2024
@github-actions github-actions bot marked this pull request as draft September 3, 2024 06:47
@hyf0 hyf0 marked this pull request as ready for review September 3, 2024 06:47
@hyf0 hyf0 removed the stale label Sep 3, 2024
@IWANABETHATGUY IWANABETHATGUY added this pull request to the merge queue Sep 3, 2024
@hyf0 hyf0 removed this pull request from the merge queue due to a manual request Sep 3, 2024
@hyf0 hyf0 enabled auto-merge September 3, 2024 06:57
@hyf0 hyf0 added this pull request to the merge queue Sep 3, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Sep 3, 2024

Benchmarks Rust

  • target: main(57ec86f)
  • pr: 09-03-refactor_remove_hacky_process.exit_0_(985103f)
group                                                               pr                                     target
-----                                                               --                                     ------
bundle/bundle@multi-duplicated-top-level-symbol                     1.00     51.6±0.58ms        ? ?/sec    1.04     53.6±2.17ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-minify              1.00     74.9±1.11ms        ? ?/sec    1.00     74.7±0.90ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-minify-sourcemap    1.02     92.9±1.03ms        ? ?/sec    1.00     91.4±0.88ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-sourcemap           1.00     59.9±0.62ms        ? ?/sec    1.02     61.2±1.01ms        ? ?/sec
bundle/bundle@rome-ts                                               1.00    100.2±0.84ms        ? ?/sec    1.01    100.8±1.46ms        ? ?/sec
bundle/bundle@rome-ts-minify                                        1.00    177.6±3.25ms        ? ?/sec    1.06   189.1±11.09ms        ? ?/sec
bundle/bundle@rome-ts-minify-sourcemap                              1.00    222.3±3.31ms        ? ?/sec    1.02    227.5±7.30ms        ? ?/sec
bundle/bundle@rome-ts-sourcemap                                     1.00    115.8±1.16ms        ? ?/sec    1.00    116.4±1.14ms        ? ?/sec
bundle/bundle@threejs                                               1.00     33.5±1.24ms        ? ?/sec    1.01     33.7±0.25ms        ? ?/sec
bundle/bundle@threejs-minify                                        1.00     77.7±1.80ms        ? ?/sec    1.01     78.5±1.76ms        ? ?/sec
bundle/bundle@threejs-minify-sourcemap                              1.00     97.4±1.63ms        ? ?/sec    1.05    102.3±2.71ms        ? ?/sec
bundle/bundle@threejs-sourcemap                                     1.00     41.4±0.72ms        ? ?/sec    1.04     42.9±0.33ms        ? ?/sec
bundle/bundle@threejs10x                                            1.00    349.0±2.46ms        ? ?/sec    1.02    357.1±1.92ms        ? ?/sec
bundle/bundle@threejs10x-minify                                     1.00    941.3±7.83ms        ? ?/sec    1.01    950.5±8.25ms        ? ?/sec
bundle/bundle@threejs10x-minify-sourcemap                           1.00   1191.6±9.25ms        ? ?/sec    1.01   1197.9±9.93ms        ? ?/sec
bundle/bundle@threejs10x-sourcemap                                  1.00    418.8±1.64ms        ? ?/sec    1.02    425.3±7.59ms        ? ?/sec
remapping/remapping                                                 1.00     31.4±0.28ms        ? ?/sec    1.03     32.5±0.12ms        ? ?/sec
remapping/render-chunk-remapping                                    1.01     83.2±0.43ms        ? ?/sec    1.00     82.4±0.47ms        ? ?/sec
scan/scan@rome-ts                                                   1.03     82.1±0.71ms        ? ?/sec    1.00     80.1±0.82ms        ? ?/sec
scan/scan@threejs                                                   1.02     25.5±0.81ms        ? ?/sec    1.00     25.1±0.75ms        ? ?/sec
scan/scan@threejs10x                                                1.01    253.9±2.04ms        ? ?/sec    1.00    252.4±2.64ms        ? ?/sec

Merged via the queue into main with commit 06b578c Sep 3, 2024
@hyf0 hyf0 deleted the 09-03-refactor_remove_hacky_process.exit_0_ branch September 3, 2024 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Action benchmark-node hang forever

2 participants