Open belm0 opened 3 years ago
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.
The
-X jit-enable-jit-list-wildcards
option causes overhead ofPyEntry_init
to increase by 4x.The following are measured with
prof top -g -p ...
on my app process.empty jit list, wildcards disabled:![Screen Shot 2021-06-17 at 11 53 08 AM](https://user-images.githubusercontent.com/1708631/122324008-0656dd00-cf63-11eb-9ce1-6cb358f20427.png)
empty jit list,![Screen Shot 2021-06-17 at 11 54 03 AM](https://user-images.githubusercontent.com/1708631/122324017-0bb42780-cf63-11eb-9114-0a3a746de592.png)
-X jit-enable-jit-list-wildcards
:(from discussion in #18)