BTW, GLIBC has significant optimisations to string search/compare - STRCHR, STRSTR, STRCMP,... It ajdusts starting chars to LONGWORD then compares & loops by LONGWORD using some magic numbers for handlind NULL bytes and literals split in differert LONGWORDs.
------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

