News for hackers. Stuff that matters.
Re:N-Params vs. Single Param by oneoverten on Thursday April 17, 2025 @07:33PM (#43723382)
Yes. This is true for JS too, object-wrapping parameters just to make them named will add runtime overhead.
Re:N-Params vs. Single Param by fenomas on Friday April 18, 2025 @04:06AM (#43726015)
Not in current chrome, at least for simple cases (like a short function with a single argument). It benchmarks the same with it without the param wrapper.