On Sat, Feb 25, 2017 at 6:06 PM, Geoffrey Hutchison <
geoff.hutchi...@gmail.com> wrote:
> > 2. The GetAtomicNum() will be a compiled prefix tree using switch
> > statements. Right now, if you ask what is the atomic number of Fermium
> > (element 100), it will do 100 string comparisons.
>
> Fair enough - does it make sense to hand-write the switch statements,
> though?
>
>
My suggestion would be to use gperf
https://www.gnu.org/software/gperf/
I have cmake run gperf for me as part of my builds. It has been at least a
year since I did a build on Windows though, so I don't recall whether it
was annoying to get it working there.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel