logoalt Hacker News

KronisLVlast Sunday at 10:04 PM6 repliesview on HN

I once spent around an hour optimizing a feature because it felt slow - turns out that the slower simulated connection had just stayed enabled after a restart (can’t remember if it was just the browser or the OS, but I previously needed it and then later just forgot to turn it off). Good times, useful feature though!


Replies

solarkraftlast Sunday at 10:09 PM

Working as intended!

vunderbalast Sunday at 11:47 PM

hahaha - I've done something similar. I had an automated vitest harness running and at one point it ended up leaving a bunch of zombie procs/threads just vampirically leeching the crap out of my resources.

I naturally assumed that it was my code that was the problem (because I'm often the programmer equivalent of the Seinfeld hipster doofus) and spent the next few hours optimizing the hell out of it. It turned out to be unnecessary but I'm kind of glad it forced me into that "profiling" mindset.

rkuskayesterday at 12:09 PM

Have the same story but I forgot to disable tc netem on a server, luckily it was just staging.

reactordevyesterday at 5:38 AM

Imagine the speed of those optimizations once you turned it off. lol. Love it!

show 1 reply
6510yesterday at 1:54 AM

I wonder if that works beneficial on old computers that freeze up when you try load the GB js ad-auction circus news circus website. I want to browse loaded pages while the new tabs load. If the client just hangs for 2 min it gets boring fast.

show 1 reply
mattnewtonyesterday at 2:34 AM

sounds like the MacOS network utility. I've been bit by leaving it on after testing ios apps :D