This commit stores a single fiber stack in Store<T> as a cache to be used throughout the lifetime of the Store. This should help amortize the cost of allocating a stack for use in a store because the same stack can be used continuously throughout the lifetime of the Store<T>. This notably reduces contention on the lock used to manage the pooling allocator when possible.
This commit stores a single fiber stack in
Store<T>
as a cache to be used throughout the lifetime of theStore
. This should help amortize the cost of allocating a stack for use in a store because the same stack can be used continuously throughout the lifetime of theStore<T>
. This notably reduces contention on the lock used to manage the pooling allocator when possible.