jcarreira / cirrus-kv

High-performance key-value store

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove copy between receive buffer and deserializer

TylerADavis opened this issue · comments

Allocate a new buffer for each incoming object (std::vector presently). Client will return a shared_ptr to a point partway through this vector (represented as simply a char). Create a custom deleter so that the death of the shared_ptr results in the original vector being freed.