]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commit
Lazily construct slab objects
authorPaul Durrant <pdurrant@amazon.com>
Wed, 31 Aug 2022 15:14:27 +0000 (16:14 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Wed, 31 Aug 2022 15:53:34 +0000 (16:53 +0100)
commite5db0e07f7d2de37bb8740cdaa63caecfe4fe3e1
tree7b65b7a72dbf5f19ef8861ee4b29d8b37ea5a36e
parent5bb8633d06ceef228ccc411708bbec66394bddee
Lazily construct slab objects

To avoid a large overhead in both time and potemtially space when a new slab
is created, only construct objects as they are allocated. When they are freed
we keep them constructed to increase the chance of finding an already-
constructed object during subsequent allocations.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
src/xenbus/cache.c