mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
Reduce kmalloc() traffic in directory iteration.
Pass the file name in a stack-allocated buffer instead of using an AK::String when iterating directories. This dramatically reduces the amount of cycles spent traversing the filesystem.
This commit is contained in:
parent
5e8e554f94
commit
19b9401487
10 changed files with 60 additions and 40 deletions
|
@ -239,8 +239,7 @@ public:
|
|||
dword end_msw;
|
||||
read_tsc(end_lsw, end_msw);
|
||||
if (m_start_msw != end_msw) {
|
||||
dbgprintf("differing msw's\n");
|
||||
asm volatile("cli;hlt");
|
||||
dbgprintf("stopwatch: differing msw, no result for %s\n", m_name);
|
||||
}
|
||||
dword diff = end_lsw - m_start_lsw;
|
||||
dbgprintf("Stopwatch(%s): %u ticks\n", m_name, diff);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue