Empty overflowing polymorphic caches#452
Open
tekknolagi wants to merge 3 commits into
Open
Conversation
Owner
Author
|
I found this by running |
Owner
Author
{
"django_minimal_requests": {
"benchmark": "django_minimal_requests",
"cg_instructions before": 707812,
"cg_instructions now": 706229,
"cg_instructions ∆": "-0.2%",
"interpreter_args": [],
"interpreter_name": "pyro",
"version before": "6d57ee64d871ce6d629e6475e7135ca5b17c3fef",
"version now": "a22b1dcde16deb463afb6cc70d1741c0a7c67350"
}
} |
This comment was marked as outdated.
This comment was marked as outdated.
Owner
Author
|
TODO: Do we need to delete old dependency links? Can we even do that? |
a22b1dc to
642dc1f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Owner
Author
|
Ah, the least recently filled is only the first entry one time. Might be worth figuring out another strategy. |
Right now we have no notion of a megamorphic cache, so when a polymorphic cache is filled, any new receiver LayoutIds fall off the end into the slow full attribute lookup. With this change, polymorphic cache updates will remove the existing cache entries and add the new entry. Add tests.
642dc1f to
9ddf1c8
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
e35181a to
901ccc0
Compare
Summary
Benchmark detailsBase vs. New
CPython vs New
Base
New
CPython
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Right now we have no notion of a megamorphic cache, so when a
polymorphic cache is filled, any new receiver LayoutIds fall off the end
into the slow full attribute lookup.
With this change, polymorphic cache updates will remove the
existing cache entries and add the new entry.
Add tests.