Matt Davis - Python Performance Investigation by Example - PyCon 2018

  Рет қаралды 10,083

PyCon 2018

PyCon 2018

Күн бұрын

Пікірлер: 8
@abrahamdavidsmith
@abrahamdavidsmith 4 жыл бұрын
A good lesson. A deeper lesson here (reference Knuth on premature optimization), since the problem can be refactored to be a simple application of the Chinese Remainder Theorem.
@herscheldecouto164
@herscheldecouto164 2 жыл бұрын
Well Done!
@stevenlischer
@stevenlischer 5 жыл бұрын
Some thoughts on this puzzle and things I will try: Each scanner is operating at a frequency and offset that will block solutions at a set interval. This can be used to skip iterations and remove scanners that are effectively redundant. As a simple example, a scanner that has a height of 2 will block all even or odd solutions depending on it's position, so there is no need to attempt those times and other scanners that have a frequency and offset that would block those solutions as well are now redundant and can be removed from the firewall because just by leaving on an even/odd time, you've already guaranteed you'll clear them. Also, since we're putting this much trouble into optimizing, why not multithread before moving to pypy, etc.?
@islandfireballkill
@islandfireballkill 6 жыл бұрын
A neat thing about cython is that the bounds checking is nearly entirely "free". How it does it is it just wraps things in if statements and because modern cpus and branch perdict, any branch which always jumps one way uses nearly no cpu cycles and doesn't stall the pipeline.
@MasayoMusic
@MasayoMusic 6 жыл бұрын
The github links don't seem to be working. Anyone know the working links?
@nmertsch8725
@nmertsch8725 6 жыл бұрын
github.com/jiffyclub/pycon-2018-talk
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 59 МЛН
He bought this so I can drive too🥹😭 #tiktok #elsarca
00:22
Elsa Arca
Рет қаралды 44 МЛН
Kyle Knapp - Automating Code Quality - PyCon 2018
31:21
PyCon 2018
Рет қаралды 10 М.
The Worst Programming Language Ever - Mark Rendle - NDC Oslo 2021
1:00:41
NDC Conferences
Рет қаралды 1,3 МЛН
This is why Deep Learning is really weird.
2:06:38
Machine Learning Street Talk
Рет қаралды 386 М.
Simple Code, High Performance
2:50:14
Molly Rocket
Рет қаралды 248 М.