Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Micro-optimize TLog #518

Merged
merged 1 commit into from
Dec 12, 2023
Merged

Micro-optimize TLog #518

merged 1 commit into from
Dec 12, 2023

Conversation

durban
Copy link
Contributor

@durban durban commented Dec 11, 2023

This PR replaces the Map[Long, ...] in TLog with a LongMap to avoid boxing. It also avoids a few tuple allocations by using updated.

(On the one hand, these are clearly just micro-optimizations. On the other hand, I've observed a test with big transactions spending around 20% of its time with boxing Longs.)

@TimWSpence
Copy link
Owner

This is great, thank you!!!

@TimWSpence TimWSpence merged commit 9c35a1b into TimWSpence:main Dec 12, 2023
11 checks 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