How to use Cython to speed up Python

preview_player
Показать описание
Cython lets you write C extension modules for Python using Python itself. A common use for this is to take Python code and rewrite it in C for speed. Learn in this video what scenarios are the best fit for using Cython to speed up Python, and how Cython's type-decorating syntax helps you achieve this.

------------------------------­----
Рекомендации по теме
Комментарии
Автор

Not to be unfair to other explanations or tutorials but I never really got cython and would rather compile a shared object and use ctypes but this was very clear and concise. Will give it a try now. Great vid!

n.w.
Автор

Great introduction to Cython: very clear, brief and useful.

Congratulations !

HiltonFernandes
Автор

This video was so detailed, I loved it!

manavhirani
Автор

Where to find the alternative soundtracks?
I wish you could provide the source of the image in the end of the video

leifericson
Автор

Great tutorial, I've watched all your Cython tutorials!
It would be very cool if you did a course on Cython or even wrote a book, I would pay for either!

shneor.e
Автор

Great informative content!
Liked and subscribed!

Can you make a series of videos like a tutorial of various implementations of Cython in our daily Python codes?

that would provide tremendous added value to your viewers. thanks!

pietraderdetective
Автор

Lastly, would you be able to upload the code shown in the video to a repository?

shneor.e
Автор

Is there a performance difference when writing Cython code in the pure python mode compared to using the classic .pyx file?

shneor.e
Автор

How can I use a pure C++ class /method declaration in cython? I could take advantage of vectors and methods that use them directly! Thanks for the great repo

superuser
Автор

Thanks for your wonderful tutorial on Python compilation technics.

Could you please give me a tip how to secure Python program made for Linux (Raspberry Pi) ?

I use PyInstaller which is very good, but not secure from Binary to SourceCode.
All our years of working going waste on the cracking community.
I tried Cython + GCC compiling which fails for complex python projects with Flask.
Please give me how to make PyInstaller secured or Cython Flask project sample.

StartNight-dfsv
Автор

It is easy to understand.

The conclusion is to write the game in C, not python, like most all other games are coded in.

There's not much point to c'ifying python. Just use C or C++. 😮😂

Fortran would whip the pants off python here, too, or rust.

The take home message is please use the right tool for the task.

richardbennett