cinder icon indicating copy to clipboard operation
cinder copied to clipboard

-X jit-enable-jit-list-wildcards has high overhead

Open belm0 opened this issue 4 years ago • 1 comments

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: Screen Shot 2021-06-17 at 11 53 08 AM

empty jit list, -X jit-enable-jit-list-wildcards: Screen Shot 2021-06-17 at 11 54 03 AM

(from discussion in #18)

belm0 avatar Jun 17 '21 02:06 belm0

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.

belm0 avatar Jun 18 '21 02:06 belm0