🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Speed up serialized value loading - #5928

Merged
dolio merged 7 commits into
trunkfrom
topic/reify-perf
Oct 14, 2025
Merged

Speed up serialized value loading#5928
dolio merged 7 commits into
trunkfrom
topic/reify-perf

Conversation

@dolio

@dolio dolio commented Oct 11, 2025

Copy link
Copy Markdown
Contributor

This PR optimizes the process of reification of serialized values back into runtime values a bit. It can be around twice as fast as it previously was, depending on what you're reifying. The bulk of the work is just making various traversals involved better, and go through fewer intermediate representations.

dolio added 5 commits October 9, 2025 12:19
Two changes:

1. The traversal was using `dereference`, which could pessimize the case
   where references were factored out considerably (lots of reference
   comparisons).
2. Made the traversal for collecting references able to optimize better via
   some transforms.
These are dedicated, more efficient array traversals, and more direct
conversion between runtime and reflection representations.
@aryairani

Copy link
Copy Markdown
Contributor

Some conflicts with another Runtime PR?

@pchiusano pchiusano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

@dolio
dolio merged commit 6962d90 into trunk Oct 14, 2025
1 check passed
@dolio
dolio deleted the topic/reify-perf branch October 14, 2025 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants