← All ideas
  • Published 20 May 2018

One question (PyPy)

I don't know if it's a stupid question or not but.... Could I interest Blender in using PyPy ?.

100%

Development Status: Open

Upvote 5 Downvote 0
zebus3d
20 May 2018

6 Comments

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?

zebus3d Author

@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.

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.

zebus3d Author

@Jason van Gumster:

How fast is PyPy?

1
renderhjs

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.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.