> On 2013-12-03 04:28, Maciek Wójcikowski wrote: >> You're probably right, C also has to read therm, but other than recognizing the beginning and the end of the molecule it wouldn't do anything especially kekulization and bonding etc. > On 03/12/2013 18:11, Geoffrey Hutchison wrote: > Actually no. Indeed this would be a useful "lazy" optimization, but is not > currently implemented this way. The C++ library does in fact read the file, > but the molecules go through the parsers, which means that things like > kekulization, bond perception, etc. are generally done.
In fact it is implemented this way for most common multi-molecule file formats. The molecules before the one specified by the -f option are skipped without being parsed. (The format's virtual SkipObjects() function is used.) Chris ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss