Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.10.0
-
Component/s: None
-
Labels:None
Description
Currently this mapping done using a two dimensional int array. Using a two dimensional array for this type of mapping introduces a lot of unnecessary redundancy and doesn't capture some corner case.
I propose we use a HashMap <Integer, int[]> where the hash key is the residue index and the value is an int array containing the PDB resnum index, and PDB atom position for the given residue.
This model will not only eliminate the unnecessary redundancies, but will equally capture most corner cases more accurately and increase performance (HashMap performs better than Arrays).
I propose we use a HashMap <Integer, int[]> where the hash key is the residue index and the value is an int array containing the PDB resnum index, and PDB atom position for the given residue.
This model will not only eliminate the unnecessary redundancies, but will equally capture most corner cases more accurately and increase performance (HashMap performs better than Arrays).