K.jl icon indicating copy to clipboard operation
K.jl copied to clipboard

Separate "setup" and "work" code in runtime

Open andreypopp opened this issue 2 years ago • 0 comments

Some functions (like f/) do some "setup" (alloc the container for the result) and then do some "work" (fill the container). As per my understanding we should split those two phases into separate methods so we'd allow Julia to compile specialised methods for "work" code.

https://docs.julialang.org/en/v1/manual/performance-tips/#kernel-functions

andreypopp avatar Jun 01 '22 16:06 andreypopp