Sebastian Witowski - Writing Faster Python 3

  Рет қаралды 3,544

PyCon PL

PyCon PL

Күн бұрын

Пікірлер: 5
@jimratliff
@jimratliff Жыл бұрын
The best talk I have ever seen on actionable ways to optimize Python source code. Particularly: showing the trade-offs and that the answer is sometimes “it depends.“
@PaulJurczak
@PaulJurczak Жыл бұрын
@10:47 You are timing both the compilation and execution of Numba example. It is unfair. Numba is able to replace the loop with a formula you show later (Python 3.11, Numba 0.56.4). The execution is extremely fast. On my PC [ms]: Python loop 51.6, NumPy 3.7 and Numba 0.00022! A more "fair" example, i.e. forcing each version to run the loop, would be `total += x%9`. Timing of one million iterations [ms]: Python loop 42.6, NumPy 7.3 and Numba 0.77! Numba is still an order of magnitude faster.
@nescius2
@nescius2 Жыл бұрын
40:00 ...don't sacrifice readability for -small performance gains- list comprehensions
@barmalini
@barmalini 3 күн бұрын
comprehensions are fine, you just need to write one or two yourself to get familiar with the format and then you feel like missing them
@vram288
@vram288 27 күн бұрын
at 15.0 good
21 MORE nooby Python habits
9:55
mCoding
Рет қаралды 122 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Sebastian Witowski - Writing faster Python
24:10
EuroPython Conference
Рет қаралды 100 М.
Faster than Rust and C++: the PERFECT hash table
33:52
strager
Рет қаралды 613 М.
Python Generators
15:32
mCoding
Рет қаралды 144 М.
Алгоритмы на Python 3. Лекция №1
1:20:50
Тимофей Хирьянов
Рет қаралды 5 МЛН
Intro to JAX: Accelerating Machine Learning research
10:30
TensorFlow
Рет қаралды 1,8 МЛН
Talk - Trey Hunner: Python Oddities Explained
25:45
PyCon US
Рет қаралды 9 М.