RealistikDash / GDPyS

A Geometry Dash Private Server made in Python.
GNU General Public License v3.0
27 stars 9 forks source link

Cythonise frequently used functions #79

Open RealistikDash opened 3 years ago

RealistikDash commented 3 years ago

Proposition

Frequently used functions that work with potentially decent amount of data (such as the dict -> gd str builders or http parsers) should be converted to Cython. This will provide a significant performance benefit with not a lot of work. Essentially free speed.

How will it work.

Cython works by converting near Python code into C, that can be compiled and ran. This grants it some of the benefits of a compiled language such as static typing and the prior mentioned speed. This will not affect I/O heavy operations as those are already asynced and gain no benefits from Cython as those mostly include waiting.