kompics/kompact

Use Serialisation Size Hints for optimising buffer chunk usage

Bathtor opened this issue · 1 comments

Size hints should indicate:

  • Whether to replace a chunk before starting serialisation (hint > remaining)
  • Whether to use chained buffers (hint > chunk size)

This was actually implemented with pr #98 the try_reserve(size) method is called in the serialisation method and performs some basic logic to avoid chaining.