Re:Case Study: Npm uses Rust for its CPU-bound bottlenecks [...
by andy_ppp on Sunday March 03, 2019 @03:10PM
(#19296524)
Obviously authorisation will be a huge overhead compared to sendfile + nginx right? Am I misunderstanding what npm does?
Re:Case Study: Npm uses Rust for its CPU-bound bottlenecks [...
by Dylan16807 on Sunday March 03, 2019 @05:34PM
(#19297378)
I mean, to use sendfile you need to open the file, and that does a permission check too...
Not in a relative sense. If authorization is 5% of the work, scaling it leaves it at 5% of the work, and it's never a bottleneck. Authorization was being a significant bottleneck, not a tiny percent, and that is somewhat surprising.