Think about Loose Coupling | |
PerlMonks |
Re: Processing data with lot of math...by monkey_boy (Priest) |
on May 12, 2004 at 15:29 UTC ( [id://352786]=note: print w/replies, xml ) | Need Help?? |
I guess these are PDB files(?).
I have done similar manipulations to pdb files with few (speed) problems. There will always be some performance issues when calculating an "all by all" distance matrix, but i dont think the problem here is with RAM, as most pdb files are not that big. Perhaps if you post the code i may be able to help. one optimisation is if the distance cutoff is fixed (i.e. 3 angstroms). Then instead of calculating the euclidean distance, calculate the square euclidean distance & see if it is > 9 (i.e. 3**2). This saves a great deal of time, as the sqrt() function is relativly expensive. hope this helps.
I should really do something about this apathy ... but i just cant be bothered
In Section
Seekers of Perl Wisdom
|
|