2
0
mirror of synced 2025-02-24 14:48:27 +00:00

3 Commits

Author SHA1 Message Date
Matt Joiner
792feae8f9 iplist: Add helper to mmap in a packed blocklist 2016-04-04 16:23:05 +10:00
Matt Joiner
a4049e179c Avoid allocation in iplist.Ranger.Lookup
It was very expensive for DHT packets.
2015-10-19 00:00:26 +11:00
Matt Joiner
22428da0e3 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.
2015-09-23 18:25:22 +10:00