2 ms·
> Even better than this would be to improve the calling convention so that all calls are less expensive. However, because a function can be redefined with diff
by fulafel 9y ago
> Even better than this would be to improve the calling convention so that all calls are less expensive. However, because a function can be redefined with different arguments, it is tricky to see how to do this efficiently.
Clojure has a compiler option toggle for this called direct linking. It just says that functions can't be redefined (unless they are marked redef using a metadata key). You can also mix and match libraries compiled with or without direct linking, for example the core library uses this compile switch.