Commit 9bc2971
committed
buffer: use MempoolInstance as default allocator
Currently we use MempoolHolder as default allocator - it makes all
buffers use the same MempoolInstance. This buffer cannot be used in
Multi-Threaded scenarios, so let's simply use `MempoolInstance`
instead - now each connection will use its own allocator. To reduce
memory footprint of each connection, let's set default parameter
`M = slab_size / block_size` to 16 to use 256KB slabs by default.
Part of #1101 parent e8c0a6c commit 9bc2971
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments