Evo C++ Library 0.5.1 Released!

size_t s = v.size() + count; if (s > v.capacity()) { v.reserve(growth_policy(s)); } v.insert(v.end(), ptr, ptr + count);

I had Buffer::append which was doing something along those lines as the backing container for Buffer was std::vector<u8>.

Here's the commit from December 14, 2018. Notice the call to reserve on overflow?

https://github.com/t0rakka/mango/commit/9e315fcb34d8bf1b0d7fd33696a1ba18da75764b#diff-082d95b359aee203757454f1ebf221d4

At this point in conversation I would like to see your version of the code that improves the performance EVEN IN THE SLIGHTEST AMOUNT. Even 5% will be appreciated!!! It all comes from a budget of 64 core ARM64 _aarch64 server running streaming real-time compression. More clients we can serve with same amount of hardware the more money will be saved.

/r/cpp Thread Parent