GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing github.com — gh-131798: constant fold classmethod and staticmethod in JIT by kumaraditya303 · Pull Request #148331 · python/cpython Conversation
|
| Benchmark | main | PR | Speedup |
|---|---|---|---|
| classmethod | 1.000s | 0.572s | 1.75x faster |
| staticmethod | 0.860s | 0.482s | 1.78x faster |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This can be done for class lookups as well so things like |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I don't see any change in deltablue, but that's because it's using |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This turned out to be harder than I thought, because it would fold the classmethod descriptor into a unbound method lookup rather than a bound one, which changes the following CALL_BOUND_METHOD_EXACT_ARGS in the trace. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The outer else doesn't set |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
That shouldn't be a problem for It would make sense for If we special case |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Working on that. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR is superseded by #157011, a newer open pull request for the same issue (gh-131798), and it no longer merges cleanly. Closing to cull the number of open pull requests. Do not reopen this pull request without getting a go-ahead from a triager or core developer. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.