Compile Python to C | cython, pypy,numba | python tutorials

preview_player
Показать описание
In this video, I will explain the different options to compile our Python code to the C level to boost its performance. By implementing different options we achieved more than 100 times faster performance.
#cython #numpy #pycharm #numpy_tutorial #scipy #pypy #numba
If you like the content of this video, just gives a thumbs up for my appreciation, please!

☕ By me a Coffe:

❤️ If you find my content helpful, become a channel member -

======== Important ===========
🔥 Watch the complete Cython series:

======== Contribute ===========
🔥 Hit the link below to contribute to translations

====== Join me on Facebook: =======

===== Join on Pinterest to be a step ahead for future videos ========

===== Visit my website =======
Рекомендации по теме
Комментарии
Автор

Your feedback is truly important to me. So, bombarded me with your quires, questions, and criticism 😎. And, smash the like button 👍

Pythonist
Автор

Thank you for the tutorial.
It is brief (sadly) and it is very useful.
Especially for stubborn people like me, who needs fast scientific code but does not want to learn c++ .

vsevolodnedora
Автор

Great video! This was an easy to understand overview of the tools we can use to speed up our Python 🐍 code

livethumos
Автор

Thank you for the tutorial. It has answered a few questions I've been looking at for optimization. By extension, the next two questions are: A) What considerations do I need to take in, when trying to compile a series of progs/libs so that the end result is an executable with minimal fuss, and B) What are your suggestions to apply multi-threading, or multi-processing to address problems that can be broken down into parallel runs? Thanks in advance.

paulpenrod
Автор

8:34 If you're doing this on windows heres what you need to write:
python setup.py build_ext -i --compiler=<name of your compiler here>

I tried doing it with MinGw but I couldn't figure out how to set it up properly and ended up downloading and installing Visual Studio(the visual studio IDE),
when using visual studio as your compiler you should write
python setup.py build_ext -i --compiler=msvc


When installing visual studio, remember to include C++ compatability, otherwise I dont think it will work.


Also, on windows you will get et .pyd file, not .so

djosko
Автор

Series step by step for professionals in finnace in hft in research in etc it's so good. Thanks.

Satyam-N
Автор

Very good and informative video. I've learned about other technologies beside cython and numba

ghipsandrew
Автор

great video!
can you please kindly give an update regarding the recent Cython 3.0 ?
especially the pure python mode which looks very interesting!

i am obsessed with speed, but I can only write Python (non-programming background).
cheers!

pietraderdetective
Автор

good pacing, never got bored during the video!
I would maybe focus a little on your pronunciation, i don't mean to be insensitive to your accent but with a little training you could make it easier for your audience to understand you.


You can see where the automatically generated subtitles get confused.


best of luck mate!


(also, i know this might have been part of the aim of this video, but calculating the stdev using linear algebra would have been a fairer comparison to many data scientists, i would never code the calculation using for loops, instead statisticians would be using numpy matrix products. So now i wonder if what improvement you would have yielded if you used a more optimal formulation to begin with)

HugoCoolDude
Автор

Hey man, this is excellent, thanks for sharing.

jesuis_jo
Автор

I never understood why can't we save our code in binary and run it like that after we finished developing ? . The computer compiles our code to make binary any way . Right ? So why can't we save our projects like that after we finished developing it ?

mermaidcodes
Автор

Thank you for this awesome explanation!

namimontana
Автор

can you plz make a detailed video series on cython were you take some python examples & optimize it using cython. It would be a great serious to watch :)

pratikpawar
Автор

For decompile python encrypt by c
What should i do sir

hendripratamabusiness
Автор

afaik, shedskin, pythran are Python to C++ converters, but do they also convert Python to C?

everythingbagel
Автор

Great vid, very clear! A question: is it possibile to use Cython to speed up parts of code that uses esternal libraries?

dicember
Автор

Thanks a lot☺️ please make a video on cython

hnd
Автор

Before starting and being a Python beginner, should I start learning how to use cython already? Or should I master python first?

leonardovillegas
Автор

What is the best option to compile to C++ to make it faster and better obfuscate the C++ code at the end? Python obfuscation won't work and Pyarmor is only working with small filesizes

electricz
Автор

can i write a fuzzy logic in python and convert it to c using Cython?

laylamohammad
visit shbcf.ru