Still think Python's too slow? Here's 5 MORE optimisations to really put your mind at ease!
Benchmarks:
github.com/Carberra/python-bu...
00:00 - Intro
01:04 - Using slicing instead of startswith
04:52 - Utilising optimised truthy checks
07:45 - Using deques instead of lists where appropriate
10:51 - Caching function return values
13:16 - Using NumPy instead of lists where appropriate
15:08 - Outro
-
If you enjoy my content, consider supporting me on Patreon or becoming a member!
• Patreon: / carberra
• Membership: / @carberra
Follow me elsewhere for even more Carberra!
• Discord: / discord
• Instagram: / carberratutorials
I get a lot of people asking, so here's my setup!
• Visual Studio Code: • My Visual Studio Code ...
• Terminal: • Make your terminal loo...
-
If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.
#python #coding #howto
Негізгі бет 5 MORE EASY Python optimisations
Пікірлер: 46