/experiments-on-cython

Experiments on Cython to improve runtime of Python code

Primary LanguageHTML

Experiments on Cython

Cython is a library that you can use to optimize your Python code and make it run faster

How to use?

  • Write your code in ".py" extension format
  • Save your code in ".pyx" extension format
  • Write a "setup.py" file (Example can be found in repo)
  • Open command prompt in current folder
  • Execute the command written in "command.txt"
  • In command promt, use "python" command to start python terminal
  • Execute command "import YOURPYXFILENAME "
  • Enjoy!

You can optimize your ".pyx" format even more, just check the generated ".html" file for possible improvements.