Great, 2min 34 secs with the open method =) but why?
ip, sep, rest = line.partition(' ') match_counter[ip] += 1 instead of match_counter[line.strip()[0]] += 1 strip really takes more time than partition? I'm having the same results with both of them right now.
-- http://mail.python.org/mailman/listinfo/python-list