Skip to content

feat(node/experimental): add disableLiveBindings option#2282

Merged
hyf0 merged 1 commit intomainfrom
09-23-feat_node_experimental_add_disablelivebindings_option
Sep 23, 2024
Merged

feat(node/experimental): add disableLiveBindings option#2282
hyf0 merged 1 commit intomainfrom
09-23-feat_node_experimental_add_disablelivebindings_option

Conversation

@hyf0
Copy link
Member

@hyf0 hyf0 commented Sep 23, 2024

Description

@hyf0 hyf0 marked this pull request as ready for review September 23, 2024 04:33
Copy link
Member Author

hyf0 commented Sep 23, 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

@netlify
Copy link

netlify bot commented Sep 23, 2024

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit 9c4f35a
🔍 Latest deploy log https://app.netlify.com/sites/rolldown-rs/deploys/66f13a2d31fe80000868dd13

@github-actions
Copy link
Contributor

github-actions bot commented Sep 23, 2024

Benchmarks Rust

  • target: main(cb1dcdb)
  • pr: 09-23-feat_node_experimental_add_disablelivebindings_option(9c4f35a)
group                                                               pr                                     target
-----                                                               --                                     ------
bundle/bundle@multi-duplicated-top-level-symbol                     1.00     56.3±0.68ms        ? ?/sec    1.01     56.8±1.42ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-minify              1.00     77.3±0.38ms        ? ?/sec    1.02     79.2±0.59ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-minify-sourcemap    1.00     95.1±0.67ms        ? ?/sec    1.01     96.0±0.78ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-sourcemap           1.00     64.1±0.58ms        ? ?/sec    1.00     64.4±0.62ms        ? ?/sec
bundle/bundle@rome-ts                                               1.00    100.6±0.79ms        ? ?/sec    1.02    102.6±3.33ms        ? ?/sec
bundle/bundle@rome-ts-minify                                        1.00    178.5±1.31ms        ? ?/sec    1.01    180.0±1.94ms        ? ?/sec
bundle/bundle@rome-ts-minify-sourcemap                              1.00    223.4±2.26ms        ? ?/sec    1.00    223.3±1.94ms        ? ?/sec
bundle/bundle@rome-ts-sourcemap                                     1.00    116.5±1.55ms        ? ?/sec    1.00    116.4±1.05ms        ? ?/sec
bundle/bundle@threejs                                               1.00     35.3±0.97ms        ? ?/sec    1.00     35.3±0.97ms        ? ?/sec
bundle/bundle@threejs-minify                                        1.01     81.8±0.85ms        ? ?/sec    1.00     80.7±0.79ms        ? ?/sec
bundle/bundle@threejs-minify-sourcemap                              1.01     98.5±2.71ms        ? ?/sec    1.00     97.4±2.01ms        ? ?/sec
bundle/bundle@threejs-sourcemap                                     1.00     43.2±0.46ms        ? ?/sec    1.00     43.3±0.44ms        ? ?/sec
bundle/bundle@threejs10x                                            1.02    357.5±4.18ms        ? ?/sec    1.00    351.1±2.47ms        ? ?/sec
bundle/bundle@threejs10x-minify                                     1.00   969.1±10.25ms        ? ?/sec    1.00    969.8±5.88ms        ? ?/sec
bundle/bundle@threejs10x-minify-sourcemap                           1.00  1241.3±10.62ms        ? ?/sec    1.00  1237.2±10.41ms        ? ?/sec
bundle/bundle@threejs10x-sourcemap                                  1.02    423.7±2.35ms        ? ?/sec    1.00    417.0±2.15ms        ? ?/sec
remapping/remapping                                                 1.00     33.2±0.12ms        ? ?/sec    1.00     33.3±0.13ms        ? ?/sec
remapping/render-chunk-remapping                                    1.00     84.4±1.08ms        ? ?/sec    1.00     84.1±0.74ms        ? ?/sec
scan/scan@rome-ts                                                   1.00     82.4±1.20ms        ? ?/sec    1.00     82.6±0.64ms        ? ?/sec
scan/scan@threejs                                                   1.00     25.6±0.17ms        ? ?/sec    1.01     25.9±0.97ms        ? ?/sec
scan/scan@threejs10x                                                1.00    258.0±2.59ms        ? ?/sec    1.00    258.9±2.41ms        ? ?/sec

self.strict_execution_order.unwrap_or(false)
}

pub fn is_disable_live_bindings_enabled(&self) -> bool {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the naming is a little verbose, I think disable_live_bindings is enough.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just follow the previous is_strict_execution_order_enabled pattern. But yeah, shorthand pattern is also fine.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am ok for both, just a NIT

@hyf0 hyf0 force-pushed the 09-23-feat_node_experimental_add_disablelivebindings_option branch from 1822f21 to 9c4f35a Compare September 23, 2024 09:51
@hyf0 hyf0 added this pull request to the merge queue Sep 23, 2024
Merged via the queue into main with commit c56991c Sep 23, 2024
@hyf0 hyf0 deleted the 09-23-feat_node_experimental_add_disablelivebindings_option branch September 23, 2024 10:12
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mark

graphite-app bot pushed a commit that referenced this pull request Jan 9, 2026
This PR removes `experimental.disableLiveBindings` option.

This option was introduced in #2282 to reduce the code size in some cases. Now that Rolldown uses `exports.foo =` instead of `Object.defineProperty(exports, 'foo', { get() { ... } })` if the value is known not to be changed, there are few cases this option is effective.
graphite-app bot pushed a commit that referenced this pull request Jan 9, 2026
This PR removes `experimental.disableLiveBindings` option.

This option was introduced in #2282 to reduce the code size in some cases. Now that Rolldown uses `exports.foo =` instead of `Object.defineProperty(exports, 'foo', { get() { ... } })` if the value is known not to be changed, there are few cases this option is effective.
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.

2 participants