jambler24 / GenGraph

A repository for the GenGraph toolkit for the creation and manipulation of graph genomes
GNU General Public License v3.0
52 stars 16 forks source link

deepcopy #4

Closed jambler24 closed 5 years ago

jambler24 commented 5 years ago

In the fasta_alignment_to_subnet() function, there is a copy.deepcopy(true_start) that according to profiling is taking way too long. A suggested solution is using g = cPickle.loads(cPickle.dumps(a, -1)) as suggested here: https://stackoverflow.com/questions/24756712/deepcopy-is-extremely-slow Will try this first, but otherwise the whole fasta_alignment_to_subnet() function could do with improvement.

jambler24 commented 5 years ago

Done, seems to work.