4 ms·
Thinking about it, I do the same thing with my Ruby library mime-types[1]. The library is only useful if you load some data into its registry, so it does so aut
by halostatue 13y ago
Thinking about it, I do the same thing with my Ruby library mime-types[1]. The library is only useful if you load some data into its registry, so it does so automatically, unless you specify RUBY_MIME_TYPES_LAZY_LOAD in the environment.
I've just put myself a task to reverse the behaviour so that lazy loading is the default.
[1] https://github.com/halostatue/mime-types https://github.com/halostatue/mime-types