Commit e38cd60
committed
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#4401 parent 9b4891a commit e38cd60
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3278 | 3278 | | |
3279 | 3279 | | |
3280 | 3280 | | |
3281 | | - | |
| 3281 | + | |
3282 | 3282 | | |
3283 | 3283 | | |
3284 | 3284 | | |
| |||
0 commit comments