diegozea / MIToS.jl

A Julia package to analyze protein sequences, structures, and evolutionary information
https://diegozea.github.io/MIToS.jl/stable/
Other
75 stars 18 forks source link

Distances.jl: Incremental RAM usage on file loop #20

Closed diegozea closed 9 years ago

diegozea commented 9 years ago

Since all the structure is loaded and compared against itself, the scripts use a lot of RAM. But when is used with a list of files, some data is not garbage collected in each iteration (using gc() and empty!() doesn't work). The script is killed by the system because of this (after ~1000 iterations on a PC with 60 Gb of RAM). This is not a problem for small list or for using with -f.

diegozea commented 9 years ago

This was solved by https://github.com/diegozea/MIToS.jl/commit/0c6058f80263bd926e479a5487cbbfe96b578d81