Commit Graph

10 Commits

Author SHA1 Message Date
Matt Joiner cecc70f4cc More megacheck 2017-11-08 00:12:34 +11: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
Matt Joiner d077fed72d Some utils moved to missinggo 2015-08-04 00:29:01 +10:00
Matt Joiner 4084cad34b iplist: Fail invalid IPs, they were always passing 2015-03-28 02:54:17 +11:00
Matt Joiner 842a32ae0c Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
Matt Joiner 1663a8a2f5 iplist: Fix ranges that contain extra colons, and minimize memory use for IP 2015-03-08 17:43:44 +11:00
Matt Joiner c6cc38c9cf iplist: Make range descriptions copies of substring, saves 8MB heap on level1 blocklist! 2015-01-31 01:53:01 +11:00
Matt Joiner 9d66a837eb iplist: Benchmark parsing lines 2014-12-02 14:54:37 -06:00
Matt Joiner 88d570291c Implement iplist package, for block lists 2014-11-28 12:04:15 -06:00