NEVER Trust Optimisations In Python. Here's Why:

  Рет қаралды 5,760

Indently

Indently

Күн бұрын

Пікірлер: 9
@thisoldproperty
@thisoldproperty Жыл бұрын
Totally agree; first make it work then look at the process for potential improvements.
@HitBoxMaster
@HitBoxMaster Жыл бұрын
Do you have a video explaining how one should go about optimizing one's code, and even if it's worthwhile doing it?
@Indently
@Indently Жыл бұрын
To keep it short, in Python you in general don't think about optimising your code until you get your code actually working. Then you can start thinking about some general optimisations, but I wouldn't work so hard for micro optimisations because an upgrade in Python versions, or an upgrade in a package can easily ruin all that time spent on saving 0,000001 seconds. I spend all my time thinking about optimisations because I'm a mad scientist who makes videos about it, but that's a special case.
@XxxX-sl8lo
@XxxX-sl8lo Жыл бұрын
First, Thank you for everything you do, Can give your opinion in the following case: I have got a project proposal for a large-scale system, and i was wondering can i do it in python (from performance-wise) or go with other options (java -spring, c# -.NET, etc). I am afraid that later on after moving forward in implementing project, i recognize it was a herrible mistake to choose python (Also GIL is another impediment to optimizing the code => and does not support real multithreading), what's your opinion? i know that big-tech use python, but they may use it in one, two, or more layer and not for the entire system. FOR ex: it may be used for IO-bound tasks and non-intensive CPU tasks (fetching data, directing request, balancing loads, ....). Lastly: sorry for my english is poor
@shy-watcher
@shy-watcher Жыл бұрын
I know it's too late and you're not asking me, but I feel like for any large-scale project the most important part picking the language is familiarity with it. If you/the team only knows Python, it will work better than trying to learn a new language while starting a big project. Plus I feel like for big projects the slow execution is usually architectural in nature, so picking language based on speed is not that important. Though it depends, I can imagine projects where something compiled is better suited. And, although I don't have the experience to judge, there's a popular belief that python being easy and fast to code in becomes a problem when the project is too big, and something with more formal boilerplate like C# or Java works better to coordinate development on larger scale.
@Steel16
@Steel16 Жыл бұрын
love your content brother
@gauravsoni4025
@gauravsoni4025 Жыл бұрын
Create a video based on mojo .🔥
@rishiraj2548
@rishiraj2548 Жыл бұрын
🙏💯
5 Useful Python Decorators (ft. Carberra)
14:34
Indently
Рет қаралды 99 М.
Real Or Cake For $10,000
00:37
MrBeast
Рет қаралды 59 МЛН
1ОШБ Да Вінчі навчання
00:14
AIRSOFT BALAN
Рет қаралды 5 МЛН
AVOID Making "THIS Stupid Mistake" In Python (It's bad)
6:14
Compiled Python is FAST
12:57
Doug Mercer
Рет қаралды 109 М.
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 89 М.
The Fastest Way to Loop in Python - An Unfortunate Truth
8:06
mCoding
Рет қаралды 1,4 МЛН
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 556 М.
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,7 МЛН
“typing” is getting deprecated in Python
7:20
Indently
Рет қаралды 57 М.
Julia in 100 Seconds
2:40
Fireship
Рет қаралды 704 М.
AVOID Using: "import *" At ALL Costs In Python
6:29
Indently
Рет қаралды 10 М.
Real Or Cake For $10,000
00:37
MrBeast
Рет қаралды 59 МЛН