Skip to content

Conversation

@FGasper
Copy link
Collaborator

@FGasper FGasper commented Oct 24, 2025

This PR contains several commits that optimize various aspects of BSON handling & garbage-collection.

The commits will be preserved in the merge. Review should consider each individually.

This code gets called repeatedly, so it’s worth optimizing.
This also optimizes the field-names uniqueness check.
@FGasper FGasper force-pushed the felipe_optimize_bson branch from 05f1ea5 to 2868f19 Compare October 24, 2025 03:25
Unmarshaling is slow due to reflection. This function gets called
frequently enough to justify the optimization.
@FGasper FGasper force-pushed the felipe_optimize_bson branch 3 times, most recently from 66c7611 to 31a3273 Compare October 24, 2025 16:40
@FGasper FGasper requested a review from tdq45gj October 24, 2025 16:41
This makes the document IDs easier to reason about and sets up
further optimizations.

It also adds a few “shortcut” utilities to marshal/unmarshal BSON
without reflection.
This fixes a typo that caused more recheck batches than was intended.
It’s merely a small performance fix; it does not impact correctness.
This minimizes GC overhead, especially from BSON marshaling.
@FGasper FGasper force-pushed the felipe_optimize_bson branch from 31a3273 to 899476f Compare October 24, 2025 18:25
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.

1 participant