mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +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:
parent
7faf8fabf2
commit
5eedb22834
17 changed files with 53 additions and 50 deletions
|
@ -197,7 +197,7 @@ int do_dir_short(const char* path)
|
|||
return 1;
|
||||
}
|
||||
|
||||
Vector<String> names;
|
||||
Vector<String, 1024> names;
|
||||
int longest_name = 0;
|
||||
while (auto* de = readdir(dirp)) {
|
||||
if (de->d_name[0] == '.' && !flag_show_dotfiles)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue