]> Sergey Matveev's repositories - btrtrc.git/commit
Add packed IP list
authorMatt Joiner <anacrolix@gmail.com>
Wed, 23 Sep 2015 08:25:22 +0000 (18:25 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 23 Sep 2015 08:25:22 +0000 (18:25 +1000)
commit22428da0e3a220b08ab9025e7f185195b0fec84c
tree6f26e025b3c34aac5930659e5dcfb6939eb472f7
parent87158e594ae2890acd8df1b9b1b232033baa836d
Add packed IP list

This saves a lot of memory by allowing the IP blocklist to be mmap()ed in. In production with the latest level1 blocklist it's 35MB per process.
client.go
dht/dht.go
doc.go
iplist/cmd/pack-blocklist/main.go [new file with mode: 0644]
iplist/iplist.go
iplist/iplist_test.go
iplist/packed.go [new file with mode: 0644]
iplist/packed_test.go [new file with mode: 0644]