On Thu, Jul 22, 2010 at 11:10 PM, Stefan Behnel <[email protected]> wrote: > Hi, > > Stefan Brunthaler started a thread on python-dev about a couple of patches > he has written for CPython as part of his PhD. It seems that he has > implemented inline caching for CPython. > > http://comments.gmane.org/gmane.comp.python.devel/115362 > > http://en.wikipedia.org/wiki/Inline_caching > > Something like this might be interesting for Cython, too. He hasn't > published the patches yet, but they might well be worth a look when he does.
Very cool. I have actually thought a lot about this, and I know unladen swallow did some stuff in this direction for module/builtin lookups. Ideally, there could be some kind of a hook called, or even a dirty bit, that gets set when an objects attribute set gets modified, so we wouldn't have to re-look things up most of the time. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
