From 069ce1723871343ce396ed45b1b1b1d6f63fa0e5 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 28 Feb 2016 03:50:35 -0500 Subject: [PATCH] Note about slower performance of console writing in kmain() vs kearly() --- src/Main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Main.cc b/src/Main.cc index 8f70334..70af811 100644 --- a/src/Main.cc +++ b/src/Main.cc @@ -26,6 +26,7 @@ kmain() console.clear(kernel::Console::Color::Blue); console.writeString("Hello world!\n"); + // TODO: The performance of this loop slowed down a *lot* (7-8 orders of magnitude according to the busy loop) when I moved this code from kearly() to here. I wonder if it has something to do with object initialization? Should probably investigate some. volatile int foo = 0; int j = 0; int i = 0;