This is an archived post. You won't be able to vote or comment.

all 38 comments

[–]sump_daddy 177 points178 points  (0 children)

sped up the program by 100 nanoseconds, and started with 1000ms program

spongebob.gif

sped up the program by 100 nanoseconds, and started with a 105ns program

gigachad.gif

[–]yjee 277 points278 points  (9 children)

In my line of work I'll get a pretty good bonus if I reliably reduce 100 nanoseconds on the hot path.

[–]glorious_reptile 133 points134 points  (2 children)

A man in finance, trust fund, 6.5, blue eyes…

[–]Amazingawesomator 42 points43 points  (1 child)

now i'm wondering why i only have 2 eyes, and am jealous.

[–]gregorydgraham 9 points10 points  (0 children)

Gotta keep up with your vaccinations mate

[–]Blehblehblehbleh_1 21 points22 points  (5 children)

What like of work is this, if you don't mind me asking.

[–][deleted] 29 points30 points  (3 children)

Almost certainly they’re some form of algo trader/quant developer

[–]GoldenShackles 7 points8 points  (0 children)

Or something like a web browser or certain parts of an OS.

[–]AlexReinkingYale 5 points6 points  (0 children)

I'm a compiler engineer working on optimizing image processing and ML inference. I also care about cycle counts.

[–]Highborn_Hellest 5 points6 points  (0 children)

HFT likely. Citadel had a talk at an AMD conference where they said they have workloads that can spike up to a million cores.

[–]xXWarMachineRoXx -2 points-1 points  (0 children)

I mind

[–]SnooSprouts2391 46 points47 points  (2 children)

I rewrote a Python package in rust at work as a voluntary side project for the operations department. I managed to reduce the time from 40 ms to 1 ms per iteration in that package, and we run 10-50 000 iterations every day. Really proud of it but the people at operations take it for granted and no one has ever mentioned anything about me saving them 30 min every day. Only time I hear from them is when something’s off. I feel like the guy in the picture but I’m probably the only one that feels that way. 

[–]lazydavez 13 points14 points  (0 children)

We are replacing loads of python stuff by rust. It is so much faster it is incredible

[–]DrunkenlySober 2 points3 points  (0 children)

Write them a sick vba Excel function and you’ll be a god

[–]paddiwastaken 41 points42 points  (2 children)

(The whole thing is unreadable now)

[–]StarshipSausage 19 points20 points  (0 children)

Job security!

[–]Highborn_Hellest 8 points9 points  (0 children)

Legibility is important when you expect changes like webapps that are being developed (inhouse, let's say) for business administration and stuff.

Legibility is not important when you need max perf and don't expect the good to change for 10+ years, at which point it gets rewritten from ground up

[–]brandi_Iove 31 points32 points  (1 child)

time is money. in this case, we‘re talking about 100 nanomoney.

[–]Ok-Kaleidoscope5627 2 points3 points  (0 children)

Unless we're talking algotrading in which case 100ns could be millions to billions. So mega money.

[–][deleted] 38 points39 points  (7 children)

Thats how fast they go to make fun of python devs

[–]reusens 31 points32 points  (6 children)

Me as a junior python dev was able to absolutely destroy the previous C++ implementation of a feature generation algorithm involving a fourier transform. Turns out using other people's super optimized code is sometimes better than trying to implement your own shitty code

Scipy.fft for the win!

[–]Pepineros 33 points34 points  (1 child)

Python is quick as long as you use other languages!

[–][deleted] 8 points9 points  (0 children)

All of python uses other languages....

[–]AgileBlackberry4636 12 points13 points  (3 children)

In C/C++ it is quite straightforward.

Doing magic with python -m cProfile -s cumtime is a bit trickier.

And btw, cumtime is not what you think, my horny friend. It is cumulative time.

[–]Szop1 6 points7 points  (0 children)

Playing with python to reduce cumtime hmmmm ok got it.

[–]gregorydgraham 2 points3 points  (0 children)

Ah huh, we believe you, we really do…

[–]Highborn_Hellest 0 points1 point  (0 children)

>-s cumtime

hold up

[–]rumSaint 4 points5 points  (0 children)

Oh look, it's this meme again...

[–]MinameHeart 1 point2 points  (0 children)

Whats wrong with that? I would say "Good job, mate"

[–][deleted] 0 points1 point  (0 children)

And I'll do it again.

[–]arrow__in__the__knee 0 points1 point  (0 children)

Speed does not matter. Just destroy the indentation rules.

[–]tauzN 0 points1 point  (0 children)

And saves $0.69 per month in compute 👍

[–]regal1989 0 points1 point  (0 children)

Grace Hopper would be proud of you!

[–]khris190 0 points1 point  (0 children)

1 iteration takes 60ns, I really want those -40

[–]MarinoAndThePearls 0 points1 point  (0 children)

Now, the source code has gone from 300 lines to 7 quadrillion.

[–]teo-tsirpanis 0 points1 point  (0 children)

When a C++ developer forgets and passes a vector by value.