I don't know if it's a stupid question or not but.... Could I interest Blender in using
PyPy
?.
100%
Development Status:
Open
Upvote5Downvote0
z
zebus3d
20 May 2018
6 Comments
j
jason
The PyPy website gives a description of some of the advantages it has over other Python implementations, but it would be pretty useful here if you would describe what you think are the specific advantages that Blender users would gain from this. Also, how would using PyPy change (if there is one) the way we currently write scripts and add-ons for Blender?
z
zebus3dAuthor
@Jason van Gumster:
The main advantage would be performance and runtime speed. I'm not an expert on the subject. So I don't know if it would be beneficial or if it really isn't worth it.
j
jason
@zebus3d:
Can you quantify that performance increase? I know some folks have swapped out other Python distributions (Anaconda, IronPython, etc) for their own use in Blender, but those were rather specific scenarios. I think we'd need to know some specific, quantifiable benefits of doing such a swap for general release.
To elaborate a bit more on zebus3d messages:
PyPy is to be considered on average about 7.6x faster than regular C- Python. A faster python API execution would be desirable for mesh operations in particular. It also seems to reduce memory usage for memory intense executions.
1
o
o.mangold
@zebus3d:
It is usually actually faster. Even with more complex code a factor of 2 over cpython should be in it. In some microbenchmarks it can compare with javascript. Note though, that it has compatibility issues with the python c api.
6 Comments
The PyPy website gives a description of some of the advantages it has over other Python implementations, but it would be pretty useful here if you would describe what you think are the specific advantages that Blender users would gain from this. Also, how would using PyPy change (if there is one) the way we currently write scripts and add-ons for Blender?
@Jason van Gumster: The main advantage would be performance and runtime speed. I'm not an expert on the subject. So I don't know if it would be beneficial or if it really isn't worth it.
@zebus3d: Can you quantify that performance increase? I know some folks have swapped out other Python distributions (Anaconda, IronPython, etc) for their own use in Blender, but those were rather specific scenarios. I think we'd need to know some specific, quantifiable benefits of doing such a swap for general release.
@Jason van Gumster:
How fast is PyPy?
To elaborate a bit more on zebus3d messages: PyPy is to be considered on average about 7.6x faster than regular C- Python. A faster python API execution would be desirable for mesh operations in particular. It also seems to reduce memory usage for memory intense executions.
@zebus3d: It is usually actually faster. Even with more complex code a factor of 2 over cpython should be in it. In some microbenchmarks it can compare with javascript. Note though, that it has compatibility issues with the python c api.