News for hackers. Stuff that matters.
Re:No one cares about Bun's speed. Your CI does though by hinkley on Sunday March 05, 2023 @08:23PM (#35036371)
I changed some code for a tool to use worker threads instead of child spawn. We had libraries that could talk to services, and the tool’s job was to compare prod and preproduction, so the simplest thing to do is start two processes configured for both.

But the call time had gone north of 1 second so there was a lot of friction to adding more questions. I subsequently fixed some dumb bootstrapping code to the tune of ~250 ms, which would have been enough to add all of our current apps to the tool, but what really helped was using worker threads knowing the number of environments to check was finite. We only needed k threads so we could eat startup time entirely.

Bun is also faster. If you added my fix and used Bun, you could use forking to cover cases that are O(m) instead of O(k). (Typically k << m < n when doing orders).

There are no comments on this comment yet.