https://gitlab.synchro.net/main/sbbs/-/commit/59a695825a13d6898fb804a0
Modified Files:
src/xpdev/gen_defs.h
Log Message:
Don't rely on locale for isspace()
With truncsp() and SKIP_WHITESPACE() dominating runtime for INI
parsing now, the locale lookups needed for every isspace() call
have become significant. Since we likely don't actually want isspace()
to use the local, expand the C locale whitespace table directly.
This provides a 20% performance boost to INI parsing when using
the FastParse calls (much smaller using other parsing functions)
and is likely to improve various other whitespace-heavy things.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net