Skip to content

engine: reduce CBaseClient size & move scratch buffer#162

Open
RaphaelIT7 wants to merge 3 commits intoSource-Authors:masterfrom
RaphaelIT7:rmod-patch-2-split-12
Open

engine: reduce CBaseClient size & move scratch buffer#162
RaphaelIT7 wants to merge 3 commits intoSource-Authors:masterfrom
RaphaelIT7:rmod-patch-2-split-12

Conversation

@RaphaelIT7
Copy link
Contributor

@RaphaelIT7 RaphaelIT7 commented Nov 17, 2025

Still needs testing.
Moved the scratch buffer to be inside SendSnapshot as it greatly reduces the size of the class and saves memory.
This is because it's only used to send snapshots - for that we can just allocate it once per thread and reuse it instead of having one per client.
It's more likely to have way more clients than threads so it'll save memory.

@RaphaelIT7 RaphaelIT7 marked this pull request as ready for review November 17, 2025 19:40
@dimhotepus dimhotepus force-pushed the master branch 5 times, most recently from 739a853 to a997975 Compare January 5, 2026 13:14
@dimhotepus dimhotepus force-pushed the master branch 2 times, most recently from a237f58 to 6699560 Compare January 26, 2026 13:57
@dimhotepus dimhotepus force-pushed the master branch 2 times, most recently from 1319e7e to 08258ce Compare February 8, 2026 19:51
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