Skip to content

Commit

Permalink
perf(fix): Do not call boost::vector::clear()
Browse files Browse the repository at this point in the history
io::Buffer has wptr and rptr which effectively controls buffer
boundaries

SDB-6760
  • Loading branch information
art-gs authored and markaylett committed Apr 3, 2024
1 parent 4c91fbf commit 1cb96fe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion toolbox/io/Buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class TOOLBOX_API Buffer {
void clear() noexcept
{
rpos_ = wpos_ = 0;
buf_.clear();
}

/// Move characters from the write sequence to the read sequence.
Expand Down

0 comments on commit 1cb96fe

Please # to comment.