-
Craig Tiller authored
(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.
Craig Tiller authored(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.