Skip to content

Optimize concurrent logging via decoupled thread-local serialization (SBO-Decoupling) - #157

Closed
doomedraven wants to merge 2 commits into
kevoreilly:capemonfrom
doomedraven:opt/decoupled-logging
Closed

Optimize concurrent logging via decoupled thread-local serialization (SBO-Decoupling)#157
doomedraven wants to merge 2 commits into
kevoreilly:capemonfrom
doomedraven:opt/decoupled-logging

Conversation

@doomedraven

Copy link
Copy Markdown
Contributor

Implements completely concurrent and thread-local log serialization inside loq. Makes g_bson and g_istr thread-local variables using __declspec(thread), allowing multiple monitored threads to format their API arguments lock-free. Holds the global g_mutex strictly during the actual BSON buffer flush/cache operations, dropping lock-hold times from milliseconds to microseconds.

doomedraven and others added 2 commits August 16, 2026 12:06
…(SBO-Decoupling)

Implements completely concurrent and thread-local log serialization inside loq. Makes g_bson and g_istr thread-local variables using __declspec(thread), allowing multiple monitored threads to format their API arguments lock-free. Holds the global g_mutex strictly during the actual BSON buffer flush/cache operations, dropping lock-hold times from milliseconds to microseconds.
@doomedraven

Copy link
Copy Markdown
Contributor Author

ah you solved conflicts, use this or this with solved #162

@doomedraven

Copy link
Copy Markdown
Contributor Author

closing this as we continue in 162

@doomedraven
doomedraven deleted the opt/decoupled-logging branch August 20, 2026 10:45
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