Commit Graph

5 Commits

Author SHA1 Message Date
Matt Joiner 582d749f69 iplist: Add TODO to allow unmapping 2017-06-11 20:09:40 +10:00
Seth Hoenig 9f4bf70e17 refactor struct identifiers to follow conventional go names 2016-04-18 23:11:11 -05:00
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