3 ms·
"... I've thrown a lot of ad-hoc tests at it, and I'm getting remarkably close performance to standard Clojure code" That's amazing! "Someone suggested to me
by jlongster 14y ago
"... I've thrown a lot of ad-hoc tests at it, and I'm getting remarkably close performance to standard Clojure code"
That's amazing!
"Someone suggested to me that if you have low-level enough access to your implementation, you can reuse the thunk after each invocation ..."
Yep, I thought of that when I was looking at the generated js code. I'm think of out of luck as well. However, as I mentioned at the end of my article, I think you should be able to hoist all the functions into top-level forms and pass around an environment. This way, functions are statically allocated once, and the performance hit of passing around environments can't be nearly as great as function allocation.