Hi, On 17 July 2014 13:32, Eleytherios Stamatogiannakis <est...@gmail.com> wrote: > Could this be made faster with binary search or jump tables, like what C++ > compilers use to optimize switches?
Yes, it's a long-term plan we have to enable this in the JIT. Let me repeat again that for 6 items it's a bit unclear that it would be better, but it would definitely be an improvement if the number of cases grows larger. A bientôt, Armin. _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev