halostatue/mime-types — pull request #9 by gdb (2012-01-30 02:33:13+00:00)
Title: Add lazy loading and caching to mime types

At the moment, loading mime/types is pretty expensive, clocking in around 200ms on my machine. Most of that time is spent parsing the mime type files. These two commits bring down the load time to a negligible amount. If you're interested in the functionality, I'd be happy to get the patches into a mergeable state.

Note that lazy loading is intended primarily for services which import mime/types only as an artifact of dependency graphs [e.g. many projects using rest-client], while caching is intended for services which actually use it.