This makes me wonder if recompiling Python with -march=native -mtune=native would speed it up by any noticeable amount.
But I found one report[1] that says these compiler flags do (or did, some time ago) make a difference.
[0] https://docs.python.org/3/using/configure.html#performance-o...
[1] https://atleastfornow.net/posts/py3-enable-optimisations/