Commit 64c62d3
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.
Along the way, move a brace to the same line with `Buffer` class name to
make it conform to our clang format.
Part of #1101 parent e16a946 commit 64c62d3
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
| 61 | + | |
| 62 | + | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
0 commit comments