3 ms·
One cannot be a little bit pregnant. But a DB can be only a little bit in the RAM, and specifically in the page cache. SQLite can act exactly like that, and it'
by nine_k 6mo ago
One cannot be a little bit pregnant. But a DB can be only a little bit in the RAM, and specifically in the page cache. SQLite can act exactly like that, and it's damn fast as long as it does not need to durably write a transaction. Polling once a millisecond could spend a few microseconds.
I wonder if using a tiny Redis instance, or even something like LevelDB would be even more efficient.
- Retr0id 6mo agoWith the file-watch APIs is that you don't need to poll at all - free is better than cheap.