<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">On Oct 17, 2017 11:25 AM, "Guido van Rossum" <<a href="mailto:guido@python.org">guido@python.org</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="quoted-text"><br></div></div></div><div class="gmail_extra">In short, I really don't think there's a need for context variables to be faster than instance variables.</div></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">There really is: currently the cost of looking up a thread local through the C API is a dict lookup, which is faster than instance variable lookup, and decimal and numpy have both found that that's already too expensive.</div><div dir="auto"><br></div><div dir="auto">Or maybe you're just talking about the speed when the cache misses, in which case never mind :-).</div><div dir="auto"><br></div><div dir="auto">-n</div><div dir="auto"></div></div>