4 ms·
You can use AllocCheck.jl to guarantee your code doesn't allocate. It's conservative, so it'll sometimes throw false positives, but shouldn't throw false negati
by SatvikBeri 8mo ago
You can use AllocCheck.jl to guarantee your code doesn't allocate. It's conservative, so it'll sometimes throw false positives, but shouldn't throw false negatives. You apply the checks to function definitions.
You can profile memory usage line by line in detail pretty easily with tools like @timeit or @btime
In practice I've found it pretty easy to get inner loops down to few or 0 allocations when needed for parallelization