Skip to content
Snippets Groups Projects
  • Craig Tiller's avatar
    53e6b56e
    Reduce server memory usage · 53e6b56e
    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.
    53e6b56e
    History
    Reduce server memory usage
    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.