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: https://github.com/ksh93/ksh/issues/440 |
||
|---|---|---|
| .. | ||
| cmd | ||
| lib | ||
| Mamfile | ||