Open Miou-zora opened 3 months ago
You can typically get an 8x speedup by switching from CPython to Pypy.
You can typically get an 8x speedup by switching from CPython to Pypy.
This improvement is quite good, @Sigmanificient is currently making a PR to fix pypy support for meson for Nix. We should make some internal engine modifications which contains the most bottleneck (I think). I would like to notice that other types of problems will arise when using the engine. We can also think about using Cython
Turns out that the failing meson
is a dependency from python-meson
used by grpcio
, which is a dependency we do not need and can remove!
Cython can give you a big speed up but you have to be prepared to identify the hot parts of your code and rewrite them in a language that is more C than Python.
For pure Python, the fastest interpreter is GraalPy, but it doesn’t have good compatibility with Python libraries so you might have to switch to Java libraries.
Cython seems interresting, I'd like to try it out
Is your feature request related to a problem? Please describe.
Currently, ECS is very but VERY slow: 10000 entity max for no logic, no debug print. We can dream about physic plugin and complex entity
Describe the solution you would like
I dunno
Describe alternatives you have considered
Please, make some investigations.