perf. experiment: smaller default segment size

This commit is contained in:
Christian Köllner 2020-02-22 14:31:10 +01:00
parent 335414ed53
commit 6d711b8579

View File

@ -49,7 +49,7 @@ namespace Capnp
/// <param name="defaultSegmentSize">Default size (in words) of a newly allocated segment. If a single allocation requires /// <param name="defaultSegmentSize">Default size (in words) of a newly allocated segment. If a single allocation requires
/// a bigger size, a bigger dedicated segment will be allocated. On the wire, segments will be truncated to their actual /// a bigger size, a bigger dedicated segment will be allocated. On the wire, segments will be truncated to their actual
/// occupancies.</param> /// occupancies.</param>
public SegmentAllocator(int defaultSegmentSize = 128) public SegmentAllocator(int defaultSegmentSize = 64)
{ {
_defaultSegmentSize = defaultSegmentSize; _defaultSegmentSize = defaultSegmentSize;
} }