dwinter / accuMUlate

code for calling mutatons from MA lines
MIT License
1 stars 6 forks source link

Cache re-used objects #8

Closed dwinter closed 7 years ago

dwinter commented 9 years ago

At the moment there are a few objects that get created every time we process a site's data. In particular, three MutationMatrix objects get built up with every mutation call, but the exact same one is used every time.

It would make more sense to have these matrices as global variable or (better) members of the VariantVisitor classes that be set once at the start of the run.