Skip to content
Snippets Groups Projects
Commit 53e6b56e authored by Craig Tiller's avatar Craig Tiller
Browse files

Reduce server memory usage

(this needs more testing/analysis to prove that it's safe)

Switch from a lock free stack to an mpscq protected by a spinlock for incoming requests. The mpscq is unbounded and so needs (much) less memory allocated up front.
memory_profile_test shows this reduces initial server creation cost from 4MB to 1.5KB.
parent e7c31edb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment