diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-11-13 00:17:30 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-11-13 00:17:30 +0100 |
commit | 19b9401487e87dcbb43b52c6fe194e3b0e49f842 (patch) | |
tree | 6a5a7d5625920176d6846f58b17832871f656110 /Kernel/i386.h | |
parent | 5e8e554f948a43d758eee6c0e56ee237f4dc1db1 (diff) | |
download | serenity-19b9401487e87dcbb43b52c6fe194e3b0e49f842.zip |
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.
Diffstat (limited to 'Kernel/i386.h')
-rw-r--r-- | Kernel/i386.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Kernel/i386.h b/Kernel/i386.h index b4c64b6247..5ab93f3653 100644 --- a/Kernel/i386.h +++ b/Kernel/i386.h @@ -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); |