Skip to content

perf(napi/parser): lazy load raw transfer deserializers#10482

Merged
graphite-app[bot] merged 1 commit intomainfrom
04-17-perf_napi_parser_lazy_load_raw_transfer_deserializers
Apr 29, 2025
Merged

perf(napi/parser): lazy load raw transfer deserializers#10482
graphite-app[bot] merged 1 commit intomainfrom
04-17-perf_napi_parser_lazy_load_raw_transfer_deserializers

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Apr 17, 2025

Don't eagerly load raw transfer deserializer code. These files are large and will take JS engine some time to parse. Instead, require the appropriate deserializer lazily, when it's first needed.

For the majority of users who aren't using raw transfer (almost everyone, as it's currently behind an experimental option), avoid loading this code entirely.

@github-actions github-actions bot added the C-performance Category - Solution not expected to change functional behavior, only performance label Apr 17, 2025
Copy link
Member Author

overlookmotel commented Apr 17, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

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

@overlookmotel overlookmotel marked this pull request as ready for review April 17, 2025 17:26
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Apr 19, 2025
Copy link
Member

Boshen commented Apr 19, 2025

Merge activity

  • Apr 19, 10:12 AM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Apr 19, 10:12 AM EDT: Boshen added this pull request to the Graphite merge queue.
  • Apr 19, 10:33 AM EDT: The Graphite merge queue removed this pull request due to downstack failures on PR #10481.
  • Apr 29, 5:44 AM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Apr 29, 5:54 AM EDT: overlookmotel added this pull request to the Graphite merge queue.
  • Apr 29, 5:55 AM EDT: Merged by the Graphite merge queue.

@graphite-app graphite-app bot force-pushed the 04-17-refactor_napi_parser_move_generated_deserializer_files branch from bdab229 to 5a4367e Compare April 19, 2025 14:13
graphite-app bot pushed a commit that referenced this pull request Apr 19, 2025
Don't eagerly load raw transfer deserializer code. These files are large and will take JS engine some time to parse. Instead, `require` the appropriate deserializer lazily, when it's first needed.

For the majority of users who aren't using raw transfer (almost everyone, as it's currently behind an experimental option), avoid loading this code entirely.
@graphite-app graphite-app bot force-pushed the 04-17-perf_napi_parser_lazy_load_raw_transfer_deserializers branch from 7f8d29e to bf791b7 Compare April 19, 2025 14:13
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Apr 19, 2025
overlookmotel added a commit that referenced this pull request Apr 22, 2025
Don't eagerly load raw transfer deserializer code. These files are large and will take JS engine some time to parse. Instead, `require` the appropriate deserializer lazily, when it's first needed.

For the majority of users who aren't using raw transfer (almost everyone, as it's currently behind an experimental option), avoid loading this code entirely.
@overlookmotel overlookmotel force-pushed the 04-17-perf_napi_parser_lazy_load_raw_transfer_deserializers branch from bf791b7 to ff88a4b Compare April 22, 2025 09:54
Don't eagerly load raw transfer deserializer code. These files are large and will take JS engine some time to parse. Instead, `require` the appropriate deserializer lazily, when it's first needed.

For the majority of users who aren't using raw transfer (almost everyone, as it's currently behind an experimental option), avoid loading this code entirely.
@overlookmotel overlookmotel force-pushed the 04-17-perf_napi_parser_lazy_load_raw_transfer_deserializers branch from ff88a4b to d882eaa Compare April 29, 2025 09:43
@overlookmotel overlookmotel force-pushed the 04-17-refactor_napi_parser_move_generated_deserializer_files branch from 0368a3a to 3b6d52d Compare April 29, 2025 09:43
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Apr 29, 2025
Base automatically changed from 04-17-refactor_napi_parser_move_generated_deserializer_files to main April 29, 2025 09:54
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Apr 29, 2025
@graphite-app graphite-app bot merged commit d882eaa into main Apr 29, 2025
28 checks passed
@graphite-app graphite-app bot deleted the 04-17-perf_napi_parser_lazy_load_raw_transfer_deserializers branch April 29, 2025 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-performance Category - Solution not expected to change functional behavior, only performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants