How did you make such huge performance gains?

This isn’t really a request for help, but I didn’t find a more appropriate section to just comment.

I recently added 3.14 to my CI, and then I saw this:

My first suspicion was that Github was allocating more CPU to 3.14, or something…
But then I tested it on my own machine, and it’s real.
My code runs ~3.5x faster on Python 3.14

Thanks to the people working on performance.

16 Likes

Just curious, is this a private repo or can you share?

I’m just guessing but for the Python interpreter, for things that are done more often (like split or join, again I’m just guessing) they can insert assembly routines for that which run fast.

Regex tends to slow things down so maybe they sped it up somewhat.