4 ms·
> you write code (like in the example here [1]) that is bound to be slow, just from a glance at it > [1] https://git.embl.de/costea/metaSNV/blob/master/metaSNV_
by peterwaller 9y ago
> you write code (like in the example here [1]) that is bound to be slow, just from a glance at it
> [1] https://git.embl.de/costea/metaSNV/blob/master/metaSNV_post... https://git.embl.de/costea/metaSNV/blob/master/metaSNV_post.....
Given his code you referenced, could you elaborate on what makes it look slow at a glance, and how you might speed it up? :)
- anaptdemise 9y agoln 221: if snp_taxID not in samples_of_interest.keys():#Check if Genome is of interest Tracing through, looks like samples_of_interest is a dict. `snp_taxID not in samples_of_interest` would make membership check constant time.