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

Convert Pinner & SyncManager into structs to save allocations #340

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

SergeiPavlov
Copy link
Collaborator

No description provided.

@SergeiPavlov SergeiPavlov changed the title Convert Pinner into struct to save allocations Convert Pinner & SyncManager into structs to save allocations Jan 15, 2025
@botinko
Copy link

botinko commented Jan 15, 2025

I'm starting to worry about the DO optimization strategy. Seriously, do you rely on the profiling results? PR itself looks good, but generally, I'm against seeming random blind optimizations. I mean you could spent a lot of time for tens or even thousands of such optimizations without making any real progress in real use-case scenarion.

@SergeiPavlov
Copy link
Collaborator Author

SergeiPavlov commented Jan 15, 2025

without making any real progress in real use-case scenarion.

Here the profit is obvious: -2 Heap allocations per Session
We need not measure anything when we have some profit without any overhead

@SergeiPavlov SergeiPavlov merged commit 8f33dde into master-servicetitan Jan 15, 2025
4 checks passed
@SergeiPavlov SergeiPavlov deleted the Pinner branch January 15, 2025 22:46
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