Skip to content

Conversation

@gdwoolbert3
Copy link
Owner

Purpose

Various minor enhancements geared towards ergonomics and performance.

Approach

The big change here is that a GenBatcher can flush items in a LIFO order. This gives us a minor performance boost because we no longer need to reverse the list of items (which, in some cases, can be rather costly).

There is also a minor speed improvement in that we no longer mutate the process dictionary during flushes. This is an incredibly small time save, but it had been bugging me for a while.

Testing

This PR adds new tests for ordering but relies on the existing tests for some of the smaller changes.

@gdwoolbert3 gdwoolbert3 merged commit e744f16 into main Nov 13, 2025
1 check passed
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.

2 participants