Posts: 4,560
Threads: 1,464
Joined: Sep 2016
true, but what about the steps taken to get there?
1. lookup '
self' using the locals dictionary
2. lookup '
foo' using the attributes dictionary of the object found above
vs
1. lookup '
bar' using the locals dictionary
if i cache
self.foo
in
bar
by doing
bar = self.foo
then i need that value.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,560
Threads: 1,464
Joined: Sep 2016
Feb-22-2017, 09:14 AM
(This post was last modified: Feb-22-2017, 09:15 AM by Skaperen.)
i'm trying to think of a way to test it that itself won't be optimized. for example putting some code in a loop could end up with it recognize no change so 10000046 times around won't do so much.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,560
Threads: 1,464
Joined: Sep 2016
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.