Optimize Your Python Programs: Code Profiling with cProfile

  Рет қаралды 38,903

NeuralNine

NeuralNine

Күн бұрын

In this video, we learn how to professionally profile Python code using cProfile, to optimize the speed of our programs.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine...
💻 The Algorithm Bible Book: www.neuralnine...
👕 Programming Merch: www.neuralnine...
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine...
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/Neu...
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/

Пікірлер: 31
@JustMaiyak
@JustMaiyak Жыл бұрын
There’s a new profiler that got putt last year as well, it’s called scalene. Used it a couple of times, it’s a solid alternative to cProfile
@authentic_101
@authentic_101 5 ай бұрын
Austin is faster than simpler use cases?
@lixiang7349
@lixiang7349 Жыл бұрын
Dude, why do you keep on counting number of zeros. you do know you can use 1e7 right
@akahige9764
@akahige9764 Жыл бұрын
Nice videos, so good to learn something new every time about python. Wondering if you could make something like: simple rules to write faster python programms. Great job, keep going !!!
@ObeloMusic
@ObeloMusic Жыл бұрын
2nd this
@csm9446
@csm9446 Жыл бұрын
Great content. Excellent tutorial. In 15 minutes you passed all the information to get started with python's cProfile. Thanks!
@m7amssa
@m7amssa Жыл бұрын
Please i need help: How to create a scrolling bar using customtkinter 'python'
@thomasgoodwin2648
@thomasgoodwin2648 Жыл бұрын
oooh shiny new (actually they look a tiny bit ancient but new to me) tools for the kit. Thanks again... and again... and...
@rons96
@rons96 Жыл бұрын
man, it's just didatic thing or you program using pycharm in Windows system everyday? There's no problem with that, but I personally think Windows is annoying for programming because the tons of bloatware, everytime popups to be sure you are not doing some harmful thing to the system, etc... But almost everything is configurable, taste is taste. EDIT: Almost forgot: nice video, I learn many things here, you're good teacher.
@bravitheja1142
@bravitheja1142 6 ай бұрын
7:11
@nawrashussein2004
@nawrashussein2004 9 ай бұрын
(tuna result.prof) doesn't open a GUI or browser page. I always get "'tuna' is not recognized as an internal or external command, operable program or batch file." what I suppose to do ? I already installed (pip install tuna) and when I am trying to reinstall it I get (Requirement already satisfied: tuna in c:\users\alnaseem\appdata oaming\python\python312\site-packages (0.5.11)) help please
@samratbiswas
@samratbiswas Жыл бұрын
Hiii, Can you make a video on, "How to generet some project files Automaticly - by using command line". Like Django do...
@BPJennieYeager
@BPJennieYeager Жыл бұрын
why does your print function take so little time? my print function takes 97 seconds.
@danielgranjaconejeros6355
@danielgranjaconejeros6355 6 ай бұрын
Was looking for py-spy tutorials but yours on cProfile is so practical that I will go with this tool. Thanks!
@rons96
@rons96 Жыл бұрын
Nice optimized solution with only python, but if you have nice space on disk and Windows installed, cythonize it, or maybe just use yield then converse it to a list
@MrRezhes
@MrRezhes Жыл бұрын
Thanks for your videos, I have followed the exact code, but the tuna does not recognize some lines and the browser part does not show any of the stats, do u have any idea where the issue is??
@chikkii1601
@chikkii1601 Жыл бұрын
First comment 🥳🥳🥳🥳🥳🥳🥳
@pra1had
@pra1had Жыл бұрын
Pretty concise, please try and share the python code it that's possible
@1mrnewton
@1mrnewton Жыл бұрын
Terrific!
@SaurabhMittal-z4q
@SaurabhMittal-z4q Жыл бұрын
Can you make video for memory profiling also instead of time
@alexnefayne4266
@alexnefayne4266 Жыл бұрын
Thanks again for another awesome tutorial!! did u need to install a plugin to make pycharm automatically import time ?
@tejas4054
@tejas4054 Жыл бұрын
I want to know how to do it in django please tell
@nintishia
@nintishia Жыл бұрын
Content is extremely useful for python developers.
@STranswarp
@STranswarp 2 ай бұрын
Golden tutorial
@gdonisi
@gdonisi Жыл бұрын
What about a PyPy video?
@x9rtu3os1t8
@x9rtu3os1t8 Жыл бұрын
You are Great! Thank you.
@grantfact9740
@grantfact9740 Жыл бұрын
Life saver
@gitarrtoken
@gitarrtoken Жыл бұрын
Great tutorials as always! Started watching lots of your tutorials lately, just great content 🎉
@glibmar
@glibmar Жыл бұрын
Nice!!! Thank you
@Zzeuoba321
@Zzeuoba321 Жыл бұрын
Great video as usual... can you please do a video on back propagation programming
Speed Up Your Code With Cython
16:37
NeuralNine
Рет қаралды 117 М.
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 11 МЛН
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 102 МЛН
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 69 МЛН
Diagnose slow Python code. (Feat. async/await)
9:57
mCoding
Рет қаралды 211 М.
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 199 М.
How To FIND SLOW CODE In Python & OPTIMIZE IT (FT. cProfile)
9:23
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 113 М.
Memoization: The TRUE Way To Optimize Your Code In Python
7:32
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 827 М.
Simple Code, High Performance
2:50:14
Molly Rocket
Рет қаралды 252 М.
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 11 МЛН