Skip to content

Conversation

@dolio
Copy link
Contributor

@dolio dolio commented Oct 11, 2025

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
Contributor

Some conflicts with another Runtime PR?

Copy link
Member

@pchiusano pchiusano left a comment

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.

4 participants