kalekundert / freezerbox

MIT License
0 stars 0 forks source link

Add lazy database #15

Open kalekundert opened 3 years ago

kalekundert commented 3 years ago

One of the appeals of ReagentConfig is that it avoids actually loading the database until the last possible moment. However, it's not always possible to use ReagentConfig. There should be something with the same functionality, but the same basic API as freezerbox.load_db(). Probably it should be called freezerbox.load_lazy_db(). ReagentConfig could then be reimplemented in terms of this object (which should simplify it dramatically).