3 ms·
You’d only be able to inline if you know that your call-site is monomorphic. Also, there’s a Lisp library [0] for inlining generic functions that give you huge
by reikonomusha 9y ago
You’d only be able to inline if you know that your call-site is monomorphic. Also, there’s a Lisp library [0] for inlining generic functions that give you huge efficiency gains for certain use-cases (especially monomorphic ones). I couldn’t imagine this being a _library_ in any other language.
[0] https://github.com/guicho271828/inlined-generic-function https://github.com/guicho271828/inlined-generic-function
- ChrisRackauckas 9y agoJulia does this automatically, it you force it with @inline