Skip to content

Commit

Permalink
do one allocation
Browse files Browse the repository at this point in the history
Signed-off-by: Brenton Poke <[email protected]>
  • Loading branch information
BrentonPoke committed Oct 22, 2024
1 parent f3bc8ba commit 4e1baef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/include/DuckPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class DuckPacket {
*
*/
DuckPacket() {
//buffer.reserve(229);
buffer.reserve(256);
}

/**
Expand All @@ -53,7 +53,8 @@ class DuckPacket {
* @param filter a bloom filter
*/
DuckPacket(std::array<byte,8> duid)
: duid(duid) { //buffer.reserve(229);
: duid(duid) {
buffer.reserve(256);
}

~DuckPacket() {}
Expand Down

0 comments on commit 4e1baef

Please sign in to comment.