1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 22:15:07 +00:00

Sprinkle use of AK::Vector in various places.

Some of these are less helpful than others. Avoiding a bunch of mallocs
in the event loop wakeup code is definitely nice.
This commit is contained in:
Andreas Kling 2019-04-20 14:02:19 +02:00
parent 7faf8fabf2
commit 5eedb22834
17 changed files with 53 additions and 50 deletions

View file

@ -87,9 +87,9 @@ void IRCClient::receive_from_server()
void IRCClient::process_line(ByteBuffer&& line)
{
Message msg;
Vector<char> prefix;
Vector<char> command;
Vector<char> current_parameter;
Vector<char, 32> prefix;
Vector<char, 32> command;
Vector<char, 256> current_parameter;
enum {
Start,
InPrefix,