You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def fib (n, one):
if n <= 1:
return one
return fib(n-1, one) + fib(n-2, one)
Call fib(20, 1) on one thread, and fib(20, 1.0) on another.
Maybe use something other than fibonacci, but you get the idea.
With a GIL the specialization will flip-flop, but will be mostly correctly specialized as since the tier 1 interpreter is adaptive.
This will be a challenge for NoGIL, however.
In theory the tier 2 optimizer should work with NoGIL, but this should tell us if it doesn't.
The text was updated successfully, but these errors were encountered:
Take this fib function:
Call
fib(20, 1)
on one thread, andfib(20, 1.0)
on another.Maybe use something other than fibonacci, but you get the idea.
With a GIL the specialization will flip-flop, but will be mostly correctly specialized as since the tier 1 interpreter is adaptive.
This will be a challenge for NoGIL, however.
In theory the tier 2 optimizer should work with NoGIL, but this should tell us if it doesn't.
The text was updated successfully, but these errors were encountered: