Skip to content

GH-109369: Add machinery for deoptimizing tier2 executors, both individually and globally. - #110358

Closed
markshannon wants to merge 6 commits into
python:mainfrom
faster-cpython:tier2-deopt
Closed

GH-109369: Add machinery for deoptimizing tier2 executors, both individually and globally.#110358
markshannon wants to merge 6 commits into
python:mainfrom
faster-cpython:tier2-deopt

Conversation

@markshannon

@markshannonmarkshannon commented Oct 4, 2023

Copy link
Copy Markdown
Member

This PR just provides the machinery; we still need to add support to the executors and to make the necessary calls when instrumenting.

The implementation uses a bloom filter.
The advantage of a bloom filter is that it requires no coupling between the executors and the objects they depend on, plus it is simpler to implement and uses less memory than a precise mapping.

I've chosen k = 6 and m = 256.
This should give a low enough false positive rate for most cases. We want to keep the false positive rate very low, as spurious de-optimizations could be expensive.

@markshannon

Copy link
Copy Markdown
MemberAuthor

Closing. Superseded by #110384

@markshannon
markshannon deleted the tier2-deopt branch August 6, 2024 10:17
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@markshannon