2011/1/31 Terry Reedy <tjre...@udel.edu> > On 1/31/2011 5:31 AM, Steven D'Aprano wrote: > >> Jurjen N.E. Bos wrote: >> >>> I was impressed by the optimizations already in there, but I still >>> dare to suggest an optimization that from my estimates might shave off >>> a few cycles, speeding up Python about 5%. >>> The idea is simple: change the byte code argument values from two >>> bytes to one. >>> >> >> >> Interesting. Have you seem Cesare Di Mauro's WPython project, which >> takes the opposite strategy? >> >> http://code.google.com/p/wpython2/ >> > > The two strategies could be mixed. Some 'word codes' could consist of a > bytecode + byte arg, and others a real word code. Maybe WPython does that > already. Might end up being slower though. > > -- > Terry Jan Reedy
Yes, WPython already does it ( http://wpython2.googlecode.com/files/Beyond%20Bytecode%20-%20A%20Wordcode-based%20Python.pdfpag.7) , but on average it was faster (pag. 28). Cesare >
_______________________________________________ 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