Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of all threads using a single network poller, threads are assigned a network poller in a round-robin fashion. By default we spawn just a single network poller thread, but the amount is configurable using the INKO_NETPOLL_THREADS environment variable. In the future we may increase the default to e.g. 2 or 4, but for now this should prove good enough. The benefit of using multiple network poller threads is being able to spread the load of polling many sockets across different threads. While epoll and friends are usually fast enough, programs that make heavy use of sockets can benefit from using more than just a single thread. This fixes https://gitlab.com/inko-lang/inko/-/issues/274. Changelog: performance
- Loading branch information
1 parent
6163239
commit 44c0088
Showing
8 changed files
with
186 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.