1
0
mirror of https://github.com/Zygo/bees.git synced 2025-06-17 01:56:16 +02:00

bees: deprecate vector<uint8_t> and replace with ByteVector

The vector<uint8_t> in the hash table doesn't hurt very much--only a few
microseconds per 128K hash block.

The vector<uint8_t> in BeesBlockData hurts a bit more--we run that
constructor thousands of times per second.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell
2021-10-12 12:04:25 -04:00
parent 99709d889f
commit 14cd6ed033
2 changed files with 2 additions and 2 deletions

View File

@ -633,7 +633,7 @@ private:
ostream & operator<<(ostream &os, const BeesHash &bh);
class BeesBlockData {
using Blob = vector<uint8_t>;
using Blob = ByteVector;
mutable Fd m_fd;
off_t m_offset;