jambler24 / GenGraph

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

deepcopy #4

Closed jambler24 closed 6 years ago

jambler24 commented 6 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 6 years ago

Done, seems to work.