33.
This library (kill-port) has 1,4M weekly downloads on npm and it usually takes ~10s to kill a process in MacOS.
This library (kill-port) has 1,4M weekly downloads on npm and it usually takes ~10s to kill a process in MacOS. So... I rewrote it in Rust and now it takes 3ms That's just 3,000x faster than the original. Been using it for a couple week