News for hackers. Stuff that matters.
Re:Python 3.11 is faster than 3.8 by Shish2k on Wednesday October 26, 2022 @03:36PM (#33348294)
Thanks! Added to the list, it’s suspiciously only a little bit faster than CPython 3.11 though, which probably needs more investigation...
Re:Python 3.11 is faster than 3.8 by hnov on Wednesday October 26, 2022 @05:02PM (#33349396)
That makes sense because pypy can JIT a ladder of if/else to a compare/jump conditional each whereas a dict lookup can be an order of magnitude more complex. If they're 8bit opcodes, maybe having a list based lookup table will perform similarly on py3000 and still optimize on pypy?

Or maybe https://docs.python.org/3/library/array.html rather than list.