Earlier quoted context omitted.
You dropped the word "tight", it is important.
How so? What loop isn't "tight"? EDIT: To expand on this, why is modern software slow? The reason is because people, thinking their code isn't a bottle neck or performance doesn't matter but adherence to the right abstractions is, they write slow code and call backs thinking everything just happens immediately, with layers of abstractions, and those little innocent steps add up when every piece of code written today…
while (command != 'quit') {
command = readline()
handle(command)
}