prometheus/prometheus — pull request #305 by juliusv (2013-06-19 10:10:55+00:00)
Title: Cache fingerprint->metric lookups and drop empty series from memory on flush

This is getting a bit more convoluted that I'd like, but without a major refactoring I don't see a way to do it much cleaner at the moment.