cinder
cinder copied to clipboard
-X jit-enable-jit-list-wildcards has high overhead
The -X jit-enable-jit-list-wildcards option causes overhead of PyEntry_init to increase by 4x.
The following are measured with prof top -g -p ... on my app process.
empty jit list, wildcards disabled:

empty jit list, -X jit-enable-jit-list-wildcards:

(from discussion in #18)
From duplicate bug:
We should at least add a comment to let people know this is not suitable for production.
The root-cause is likely O(all pattern lengths) complexity being introduced on every PyEval_LazyInit() which can be a very significant given how nested-function support currently works.