-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
low priorityOther things should be worked on firstOther things should be worked on firstoptimizationImprovements to code quality or efficiencyImprovements to code quality or efficiencyserverRelates to the server codeRelates to the server code
Description
From README.md:
That having been said, multi-threading may not be avoided in the future. A technique used by several HTTP servers to tackle the C10k problem (e.g. Nginx, lighttpd) is to have a fixed-size pool of worker threads that each poll a set of client connections dispatched to them by the main thread. (An excellent article on the I/O performance of threads vs poll/select can be found here.) This approach may be used by this code in the future, if such scalability is desired.
Note that multi-threading would greatly increase the complexity of the server, and might actually make it slower due to locks on tables starving certain threads. Still, for maximum performance and scalability it may be worth considering in the future.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
low priorityOther things should be worked on firstOther things should be worked on firstoptimizationImprovements to code quality or efficiencyImprovements to code quality or efficiencyserverRelates to the server codeRelates to the server code