Re: function call speed...

2024-12-05 Thread jum...@gmail.com
A discussion about this on Clojurians slack: https://clojurians.slack.com/archives/C03L9H1FBM4/p1728361006109229 A couple of highlights: - apply is very slow and allocating. Desctucturing is suboptimal, especially for lists. - If you look at the apply method's implementation

function call speed...

2024-10-05 Thread Jules
I was just checking to see how much overhead I might pay using apply rather than destructuring a collection of args so I could call a function directly on them, when I found something I thought interesting: TLDR: - apply is really slow - 2 orders of magnitude slower than a direct call - apply o