Skip to content

[TS] Implement de/serialization as a tree of closures#3957

Merged
coolreader18 merged 7 commits intomasterfrom
noa/optimize-ts-serde
Feb 3, 2026
Merged

[TS] Implement de/serialization as a tree of closures#3957
coolreader18 merged 7 commits intomasterfrom
noa/optimize-ts-serde

Conversation

@coolreader18
Copy link
Collaborator

@coolreader18 coolreader18 commented Jan 6, 2026

Description of Changes

This should optimize better than walking the AlgebraicType tree on every call. I'll do some profiling to confirm, but I am already using it in my performance experiments.

Expected complexity level and risk

2 - fully rewrites the bsatn encoder/decoder, but it's a fairly simple format.

Testing

  • Automated testing
  • Profiling

@coolreader18 coolreader18 requested a review from gefjon January 6, 2026 19:22
@coolreader18
Copy link
Collaborator Author

Requested @gefjon's review since they expressed familiarity with the strategy.

@coolreader18 coolreader18 force-pushed the noa/optimize-ts-serde branch 6 times, most recently from ed9c6bb to 03d3f82 Compare January 7, 2026 18:09
@bfops bfops added release-any To be landed in any release window performance A PR/Issue related to improving performance of stdb labels Jan 12, 2026
@coolreader18 coolreader18 force-pushed the noa/optimize-ts-serde branch 3 times, most recently from 775375b to 0ff7251 Compare January 20, 2026 21:02
@coolreader18 coolreader18 requested a review from Centril January 20, 2026 21:03
@coolreader18 coolreader18 force-pushed the noa/optimize-ts-serde branch 7 times, most recently from 53feb8b to d1734bf Compare January 29, 2026 18:44
@coolreader18 coolreader18 force-pushed the noa/optimize-ts-serde branch from d1734bf to a614fdc Compare February 2, 2026 18:28
Copy link
Contributor

@gefjon gefjon left a comment

Choose a reason for hiding this comment

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

This looks great, thanks!

@coolreader18 coolreader18 added this pull request to the merge queue Feb 2, 2026
github-merge-queue bot pushed a commit that referenced this pull request Feb 2, 2026
# Description of Changes

This should optimize better than walking the AlgebraicType tree on every
call. I'll do some profiling to confirm, but I am already using it in my
performance experiments.

# Expected complexity level and risk

2 - fully rewrites the bsatn encoder/decoder, but it's a fairly simple
format.

# Testing

- [x] Automated testing
- [x] Profiling
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 2, 2026
@coolreader18 coolreader18 added this pull request to the merge queue Feb 3, 2026
Merged via the queue into master with commit 8b71450 Feb 3, 2026
28 of 29 checks passed
@Centril Centril deleted the noa/optimize-ts-serde branch February 3, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance A PR/Issue related to improving performance of stdb release-any To be landed in any release window

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants