Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libast/regex: do not use small block size for stack (re: e311f1e)
Opening the match stack with the STK_SMALL flag causes the stk code to allocate memory in blocks of 64*sizeof(char*) instead of 1024*sizeof(char*). This caused a significant slowdown which was exposed by the extglob.ksh module of shbench. Thanks to @JohnoKing for noticing and reporting the problem. src/lib/libast/regex/regcomp.c: regcomp(): - Remove STK_SMALL from the stkopen() option bit flags. Resolves: ksh93/ksh#440
- Loading branch information