summaryrefslogtreecommitdiff
path: root/network-bittorrent.cabal
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-06-02 05:01:46 +0400
committerSam T <pxqr.sta@gmail.com>2013-06-02 05:01:46 +0400
commit01f51b51af8a67516238bc7264079601a7e2ece5 (patch)
tree13b346ad0ba930e7d964a3de9988365f6cc6ba4f /network-bittorrent.cabal
parent5e92eec501e0a1ca6d09a01e078cf54ff3277273 (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 'network-bittorrent.cabal')
-rw-r--r--network-bittorrent.cabal3
1 files changed, 2 insertions, 1 deletions
diff --git a/network-bittorrent.cabal b/network-bittorrent.cabal
index 0a89603a..11d371e6 100644
--- a/network-bittorrent.cabal
+++ b/network-bittorrent.cabal
@@ -24,7 +24,6 @@ library
24 exposed-modules: Data.Torrent 24 exposed-modules: Data.Torrent
25 , Data.Torrent.InfoHash 25 , Data.Torrent.InfoHash
26 , Data.Bitfield 26 , Data.Bitfield
27 , Data.Bitfield.Mutable
28 27
29 , Network.BitTorrent 28 , Network.BitTorrent
30 , Network.BitTorrent.Extension 29 , Network.BitTorrent.Extension
@@ -56,7 +55,9 @@ library
56 , array >= 0.4 55 , array >= 0.4
57 , bytestring >= 0.10.2 56 , bytestring >= 0.10.2
58 , containers >= 0.4 57 , containers >= 0.4
58 , intset >= 0.1
59 , text >= 0.11.0 59 , text >= 0.11.0
60 , vector
60 61
61 -- encoding/serialization packages 62 -- encoding/serialization packages
62 , bencoding >= 0.1 63 , bencoding >= 0.1