kalekundert / stepwise_mol_bio

MIT License
0 stars 0 forks source link

Think about how samples load the FreezerBox database #32

Open kalekundert opened 2 years ago

kalekundert commented 2 years ago

If a sample class needs to access the FreezerBox database (e.g. using ReagentConfig), the default is for each instance to load its own copy of the database. In other words, there isn't a global instance of the database that is shared by default. Loading the database is quite expensive, and when you multiply than by ≈50 samples (a large but not unreasonable number), this can take several minutes to finish. Some thoughts:

Right now I like the caching idea. That should help a lot, and not be too much work.