notmyname/slogging — pull request #53 by stelford (2012-09-26 21:41:59+00:00)
Title: Vastly improve access_processor speed when using CIDR

by returning dict's instead of lists from IPTools. This turns a very
nasty O(n)*3 into O(1)*3 .. much nicer. All tests pass. Slightly slower initial start and uses slightly more memory (but no memory growth since dict's are created at startup).

speed benchmarks for 65k records (each with 255 hits) are;

2012-09-26 20:26:55.978712 <-- list start time
2012-09-26 20:27:00.123074 <-- list finish time

2012-09-26 20:27:00.484868 <-- dict start time
2012-09-26 20:27:00.608106 <-- dict finish time