|
|
|
|
|
by lttlrck
338 days ago
|
|
Of course I don't know what the parent is thinking, but my thought is: why can't it be entirely event loop driven? What are the threads adding here? (I don't know anything about that project and this isn't meant as a criticism of its design or a challenge - cos I'd probably lose :-) ) |
|
One way to look at is that with a client-server database and an async client library, you have a thread pool in the database server process to do the heavy lifting, and async clients talk to it via TCP. With SQLite, you have that "server" thread pool in the same process instead, and async "clients" talk to it via in-process communication.