franciscoadasme / chem.cr

Library for dealing with computational chemistry files
https://franciscoadasme.github.io/chem.cr/
MIT License
23 stars 1 forks source link

Cache the residue templates #220

Open franciscoadasme opened 3 months ago

franciscoadasme commented 3 months ago

Residue templates are parsed on runtime each time the program runs. If CCD is supported via either #218 or #219, it would be better to cache the results to avoid parsing and creating the entire registry each time, which may contain potentially thousand of residues or be slow to fetch from the network. It could be save as a binary file on the local user folder or read on startup.

Note that the cache must include timestamps to detect whether the contents should be reconstructed.