libreoffice-online/tools
Luboš Luňák 897c5df270 make Socket use Buffer for input buffer too
SteamSocket::eraseFirstInputBytes() removes from the beginning
of std::vector, which is generally slow. If the buffer becomes
too big, which it may under a load, then the function will get
slow, which in turn will likely lead to the buffer getting even
bigger because of accumulated backlog.

The Buffer class is optimized for removal at the beginning,
so use it instead of std::vector, including some API additions
for it to be an in-place replacement where it's used.

Signed-off-by: Luboš Luňák <l.lunak@collabora.com>
Change-Id: I4cf7ec56c908c7d3df391dc3f8e230ad32abb162
2021-10-26 12:11:58 +02:00
..
Config.cpp
Connect.cpp Move LOOLWebSocket into test/ - where it can be slowly removed. 2021-10-11 13:40:20 +01:00
KitClient.cpp
LOOLWebSocket.hpp Move LOOLWebSocket into test/ - where it can be slowly removed. 2021-10-11 13:40:20 +01:00
map.cpp
mount.cpp
Replay.hpp Move StressSocketHandler into Replay.hpp and share with wsd's fuzzing. 2021-10-11 13:40:20 +01:00
Stress.cpp Move StressSocketHandler into Replay.hpp and share with wsd's fuzzing. 2021-10-11 13:40:20 +01:00
Tool.cpp
WebSocketDump.cpp make Socket use Buffer for input buffer too 2021-10-26 12:11:58 +02:00