DEV Community

Discussion on: The Price of Currying

wilsongramer profile image
Wilson Gramer

The add example is pretty surprising! I wonder if the interpreter is inlining the uncurried version, so it's not actually doing any function calls.

anders profile image
Anders Author

Something is definitely going on there to make it such a huge difference. It would be interesting to see a breakdown of what actually happens in the JIT compiler and what the actual executing code ends up being.