indygreg / python-build-standalone

Produce redistributable builds of Python
Mozilla Public License 2.0
2.14k stars 133 forks source link

Build Python 3.13 non free threaded using mimalloc #389

Closed arnabanimesh closed 1 week ago

arnabanimesh commented 2 weeks ago

Build Python 3.13 non free threaded using mimalloc instead of obmalloc/pymalloc

zanieb commented 2 weeks ago

Can you explain why you would prefer this?

arnabanimesh commented 2 weeks ago

Main reason: The builds in python.org include mimalloc as mentioned in their release notes.

Also, as a minor sidenote, there is a noticeable (although not that much) speed improvement as mentioned in this thread: https://github.com/python/cpython/issues/90815

zanieb commented 2 weeks ago

Okay, thanks!

zanieb commented 1 week ago

Please see https://github.com/indygreg/python-build-standalone/pull/391#issuecomment-2474563416

arnabanimesh commented 1 week ago

Oh. Nice.

Although as mentioned in your comment https://github.com/indygreg/python-build-standalone/pull/391#issuecomment-2474723842, it is better to mention it explicitly in my opinion. Mentioning the --with-mimalloc flag for non free threaded build is like a test case for ensuring that mimalloc support is indeed present when building using CI. Since we are building free threaded builds (which requires mimalloc) for all the target platforms anyways, we need to ensure that mimalloc is being used for non free threaded builds in those target platforms.

zanieb commented 1 week ago

Yeah I'll probably continue my work there regardless.