Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
belm0 opened this issue Jun 17, 2021 · 1 comment
Open

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

belm0 opened this issue Jun 17, 2021 · 1 comment

Comments

@belm0
Copy link
Contributor

belm0 commented Jun 17, 2021

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
Copy link
Contributor Author

belm0 commented Jun 18, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants