At 10:48 PM 12/5/2007 +0100, Georg Brandl wrote: >Neil Toronto schrieb: > > So Jim and PJE finally convinced me to do it the right way. :) Thanks > > guys - it turned out very nice. > >How does this relate to Armin Rigo's method cache patch? > >(http://bugs.python.org/issue1685986)
Interesting. Armin's approach uses a single global cache of up to 1024 descriptors. That seems a lot simpler than anything I thought of, and might perform better by encouraging the processor to keep the descriptors in cache. It has a lot less pointer indirection, and has a dirt-simple way of invalidating a class' entries when something changes. Was there any reason (aside from the usual lack of volunteers for review) why it didn't go in already? _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com