News for hackers. Stuff that matters.
Re:Ask HN: Largest speedup you ever achieved by only changin... by chrisutz on Sunday March 21, 2021 @08:59PM (#26535672)
Started a new job working on a company's API team. The API had out of memory issues and had processes crashing all the time.

The code was PHP. All API calls ended like this:

echo json_encode($data) . "\n";

Changed just one character, the period to a comma so the string wasn't duplicated before being output. Problem solved. Felt like a hero.

Re:Ask HN: Largest speedup you ever achieved by only changin... by Leparamour on Monday March 22, 2021 @04:33AM (#26538156)
You probably found a co-worker's underhanded speed-bump meant to be taken out before the next annual performance review.