Why is Python 3.13 Slower Than 3.12 for My File Parser?

0
1
Asked By TechieWanderer42 On

I've created a custom parser for a specific game file format, and it seems to be running about 10% slower on Python 3.13 compared to 3.12. My code struggles particularly with performance when handling multiple nested references, but I'm focusing on the general slowdown issue right now. Could anyone shed some light on what changes in Python 3.13 could be causing this performance drop? You can check out my code [here](https://github.com/seifhassine/REasy/blob/d4d4c842511c51d52913e7d5d63e752875fa17ef/file_handlers/rsz/rsz_file.py#L2068) if it helps.

1 Answer

Answered By CodeGuru89 On

Have you looked at the release notes for Python 3.13? They discuss some changes meant to enable free-threaded Python, which could be impacting performance. It might be worth a look!

ParserMasterX -

I haven't really explored that aspect—free-threaded Python sounds a bit complicated for me. I just expected 3.13 to perform the same or a bit better, you know? CPU utilization has always been a hassle, so I guess I should dive back into those details.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.