diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-06-02 05:01:46 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-06-02 05:01:46 +0400 |
commit | 01f51b51af8a67516238bc7264079601a7e2ece5 (patch) | |
tree | 13b346ad0ba930e7d964a3de9988365f6cc6ba4f /src/Network/BitTorrent/Peer.hs | |
parent | 5e92eec501e0a1ca6d09a01e078cf54ff3277273 (diff) |
~ Use IntSet instead of ByteString for bitfields.
There are several reasons for this:
* IntSet is stored in ordinary heap, while ByteStrings in pinned memory;
* Our IntSet's should be much faster 90% time. (in typical BT client)
Hovewer in worst case IntSet is slower, but difference should is not
so big. (We should measure this although)
* It's pure, tested, error-free and much more convenient.
Moreover we have kill a lot of ugly code!
Diffstat (limited to 'src/Network/BitTorrent/Peer.hs')
0 files changed, 0 insertions, 0 deletions