Тёмный

How To FIND SLOW CODE In Python & OPTIMIZE IT (FT. cProfile) 

Indently
Подписаться 213 тыс.
Просмотров 20 тыс.
50% 1

Today we will be discovering together how we can use cProfile to find slow code in our program, and thanks to this, we can also further optimize our slow code.
Docs: docs.python.or...
▶ Become job-ready with Python:
www.indently.io
▶ Follow me on Instagram:
/ indentlyreels

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@zer0her058
@zer0her058 10 месяцев назад
3:23 😂 no way he called it that
@joopie46614
@joopie46614 8 месяцев назад
the what time???
@itsdarklikehell
@itsdarklikehell 7 месяцев назад
ah my favorite time of the day, let me get my lotion and tissues!
@ryzer9699
@ryzer9699 Год назад
Can you do a tut of how to protect python code and implant license's system to it? Or even provide me with some useful resources to learn from?, Btw great video. Thanks!
@JackSparrow-vh8zz
@JackSparrow-vh8zz Год назад
If you want to freeze your Python code to exe then pyinstaller works great
@dcknature
@dcknature Год назад
cProfile seems to be a rather helpful tool for development. As always thanks and 24-th 👍😉!
@yabool2001
@yabool2001 Год назад
That's great!
@maxcharacterlimitreache-
@maxcharacterlimitreache- Год назад
Your channel is a godsend for this knowledge snippets
@Indently
@Indently Год назад
Grazie bello :) Si sono mezzo Italiano, l'altro mezzo e' un mistero ahah
@GooogleGoglee
@GooogleGoglee Год назад
@@Indently Aahhh lo sapevo! Bravo! Bel canale Sei in Danimarca?
@Indently
@Indently Год назад
@@GooogleGoglee Si! Gia da 7 anni ormai :)
@GooogleGoglee
@GooogleGoglee Год назад
@@Indently hai fatto bene! 👍🏻👋🏻 congratulazioni, beato te! Avrei tante domande da farti ma purtroppo non è il posto giusto.
@ewerybody
@ewerybody Год назад
3:32 link is not in the description box :/ But before you post that answer from 10 years ago why not link the latest docs for the stuff?
@Indently
@Indently Год назад
That's a fair point, it was just faster to find on stack overflow than scrolling down half way through the documentation. But I've gone ahead and included it!
@cirklare
@cirklare Год назад
I think Cython (C python) Is a bit faster than normal python libs
@ewerybody
@ewerybody Год назад
Cython != Cpython
@ewerybody
@ewerybody Год назад
"Normal python libs" could also be compiled with cython. So this statement doesn't make much sense. You mean code compiled with cython might execute faster than when executed with default cpython? That might be true. cProfile is still useful.
@cirklare
@cirklare Год назад
@@ewerybody thank you, actually I used cython for one time
@cirklare
@cirklare Год назад
@@ewerybody I know, but I call it that way for no reason
@ewerybody
@ewerybody Год назад
0:56 did you know that Python functions always return None if not explicitly told otherwise?
@Indently
@Indently Год назад
I think I was a bit zombified from all the recording I did that day ahah. Reminds me of the times I returned True if something was True and False if it wasn't.
@rivers.thr33
@rivers.thr33 Год назад
true, though sometimes i use it to mean "this returned None for a reason" instead of "this returns None always". ended up saving me some dev time when i found myself writing a "Null" class later
@r3d570n3
@r3d570n3 8 месяцев назад
@OnlyKemal
@OnlyKemal Год назад
hi
@cheezedoodles3447
@cheezedoodles3447 Год назад
hey! there's actually a better profiler called scalene, you should check it out
@Indently
@Indently Год назад
Thanks for the heads up! I will check it out!
@ewerybody
@ewerybody Год назад
its not built-in tho, right? :)
@csd4ni3l
@csd4ni3l Год назад
thank you
Далее
How To Write Better Functions In Python
14:17
Просмотров 28 тыс.
#kikakim
00:10
Просмотров 14 млн
Compiled Python is FAST
12:57
Просмотров 111 тыс.
Diagnose slow Python code. (Feat. async/await)
9:57
Просмотров 211 тыс.
How to write UNIT TESTS in JAVASCRIPT
18:59
5 Good Python Habits
17:35
Просмотров 546 тыс.
Modern Graphical User Interfaces in Python
11:12
Просмотров 1,5 млн
Turn Python BLAZING FAST with these 6 secrets
5:01
Просмотров 45 тыс.
10 Crazy Python Operators That I Rarely Use
11:37
Просмотров 21 тыс.
Memory Profiling in Python
7:07
Просмотров 12 тыс.
Learn Python OOP in under 20 Minutes
18:32
Просмотров 43 тыс.