"M.-A. Lemburg" <[EMAIL PROTECTED]> writes:

[snip]
> BTW: I hope you did not use pybench to get profiles of the opcodes.
> That would most certainly result in good results for pybench, but
> less good ones for general applications such as Django or Zope/Plone.

Algorithm used for superinstruction selection:

1) idea: LOAD_CONST/LOAD_FAST + some suffix
2) potential suffixes:
   $ grep '..*(..*--..*)$' ceval.vmg | grep 'a1 a2 --' > INSTRUCTIONS
3) delete any instruction that I felt wouldn't be particularly frequent
   from INSTRUCTIONS (e.g. raise_varargs)
4) use awk to generate superinstruction definitions

Not only is this relatively unbiased but also very low effort.

-jakob

_______________________________________________
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

Reply via email to