Profiling in python - cpython, cprofile| learn python optimization -

preview_player
Показать описание
In this video, we are going to learn a very important concept to write efficient programs, which is Profiling. I will explain the basics concepts and the options available in Python along with the practical code examples.
And, In short, we will discuss the following things in this python tutorial:
1. cpython
2. python optimizations

Profiling is a necessary thing if you want to gain the performance of your Python programs.

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

===== NOTE ======
Text version of this topic is available at:

#python #python_lists #python_tuples #python3 #python_tutorial #python_data_structures
#profiling #profiling_in_python #profile_python_code

-~-~~-~~~-~~-~-
Please watch: "Compile Python to C | cython, pypy,numba | python tutorials "
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

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

Pythonist
Автор

I just did my first profiling using cProfile...turns out my database calls and warning messages are two of the most expensive operation. So I optimized my database query and set the warning messages to ignore (i know it's not ideal).

Now the execution time has been cut down to half even two-thirds!

pietraderdetective
Автор

I haven’t listened these concepts anywhere best lectures thanx
Please suggest best python 3 test book

hnd
Автор

Hello, I was trying this with my code and I'm getting an error. So I tried with the code that you had in this video and I get the same error:
UserWarning: Could not extract a code object for the object None
profile = LineProfiler(rock(rk))
Timer unit: 1e-06 s
Any ideas what could cause this?

andreasrosenqvist
Автор

Took me a while to understand you’re saying measure not maiyyur

abhishekbanerjee
Автор

how is it taking 3 seconds on your end to do a function call lol

Malsavahara