diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2013-12-26 00:26:36 +0000 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-01-04 21:17:52 +0400 |
commit | 2471173e557f930a872606cdbf21f4f6df74d53e (patch) | |
tree | e51e6c666706e6035c2b3909ba8311dd5af6fc42 | |
parent | cc8f393c447b53724ebdcbd8f86301d530550dcc (diff) |
Turns out network's send/recv do use GHC's fd manager stuff
Conflicts:
TODO.org
-rw-r--r-- | TODO.org | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -1,11 +1,4 @@ | |||
1 | * TODO Rename Ext,Extension -> Cap | 1 | * TODO Rename Ext,Extension -> Cap |
2 | * TODO Use System.IO instead of Network.recv/send | ||
3 | The functions in System.IO use GHC/base's built in support for epoll/kqueue | ||
4 | and the like which makes them a whole lot more efficient for file descriptor | ||
5 | I/O. Network.recv/send on the other hand just use a plain FFI call to | ||
6 | recvmsg/sendmsg which will block the whole OS thread. | ||
7 | |||
8 | ** TODO Compare performance of the two | ||
9 | * TODO Proper handling of transaction ids in UDP tracker | 2 | * TODO Proper handling of transaction ids in UDP tracker |
10 | 3 | ||
11 | Just like the krpc package does. | 4 | Just like the krpc package does. |