-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
Polling is slow and burns CPU cycles. Especially in something like a text editor where there's not much processing going on, and more time is spent waiting for user input. So we shouldn't be read()ing or polling, and instead should be looking at something like select() (meh), or a full blown asynchronous library like libevent().
I'd personally prefer the second. It's cross-platform and picks the best event loop system per platform.
Reactions are currently unavailable