bool OEShapeDatabasePrep(string filein, string fileout, unsigned int cfftype = OEShape::OEColorFFType::OEDefault))
Prepares molecules stored in a OEFormat.OEB file to improve the performance of loading the molecules into an OEShapeDatabase object. This is a mutli-threaded implementation of the shapedatabaseprep example that takes the input OEB filename as the first argument and the output OEB filename as the second argument. An optional argument to specify the color force field type can be passed in. The default color force field is Implicit Mills Dean.
Using this function to prep a database will result in as much as 10-fold performance improvement of OEShapeDatabase.Open. OEShapeDatabasePrep does the following:
This function is non-deterministic so molecules will not appear in the same order as the input file.