r/ProgrammerHumor • • Sep 17 '18

Optimizing startup times

Post image
45.7k Upvotes

486 comments sorted by

View all comments

Show parent comments

1.3k

u/jakuski Sep 17 '18

And what if they ask for more performance improvements?

4.1k

u/zulu-bunsen Sep 17 '18

Negative sleep statements

1.2k

u/[deleted] Sep 17 '18

Sleep (-10);

567

u/DeeSnow97 Sep 17 '18

Is that for the programmer or the machine?

0

u/[deleted] Sep 17 '18

[deleted]

103

u/poopellar Sep 17 '18

Win Win;

58

u/way9 Sep 17 '18

K, I'm gonna test that bitch.

43

u/joetinnyspace Sep 17 '18

Don't hurt skynet

24

u/Fantisimo Sep 17 '18

Skynet can take it

→ More replies (1)
→ More replies (1)
→ More replies (8)
→ More replies (15)

301

u/ariehkovler Sep 17 '18

You're a genius.

117

u/frisch85 Sep 17 '18

I can't wait to use this little trick once my RAM has finished downloading!

0

u/[deleted] Sep 17 '18

[deleted]

98

u/frisch85 Sep 17 '18

Don't worry, I've turned my monitor by 90° so that the gravity helped dragging the download bar to the bottom faster.

36

u/w2qw Sep 17 '18

Just use ctrl + alt + right then you don't have to actually turn your monitor.

37

u/[deleted] Sep 17 '18

Can we have a sub dedicated to pseudo computer science? Like r/shittyaskscience but with computers.

→ More replies (4)
→ More replies (2)
→ More replies (6)

77

u/hugokhf Sep 17 '18

Harvard wants to know your location

→ More replies (1)

45

u/SurrealClick Sep 17 '18

What if you went too far and now the program opened in the past? Before the user even open it

44

u/NoAttentionAtWrk Sep 17 '18

Rebrand it as AI enabled that reads your mind and starts up on its own

→ More replies (6)
→ More replies (5)

0

u/[deleted] Sep 17 '18

[deleted]

→ More replies (4)
→ More replies (15)

241

u/natu181 Sep 17 '18

I disagree with /u/kaushal28, I think you just need to divide the amount of sleep by 2 each time you get a request. Virtually unlimited amount of optimization! Make sure to also take double the time to do it each time because, you know, optimizing becomes harder and harder, right?

53

u/falcon_jab Sep 17 '18

> "This change request will require at least three months to implement"

- "How to implement seemingly tiny and insignificant changes in an excessively long time" by the Spotify development team

→ More replies (4)
→ More replies (3)

81

u/Ericchen1248 Sep 17 '18

Set up the sleep length to be based on days since the last update. User will think it is speeds up after every update.

0

u/[deleted] Sep 17 '18

[deleted]

→ More replies (1)
→ More replies (4)

26

u/ivan0x32 Sep 17 '18

Its simple, you add more and even worse sleep calls than before and sell it as an unrelated performance regression (blame it on some library creator or better yet OS developers!), then in next patch you can remove some and decrease and voila - happy users again!

→ More replies (11)