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

Use AllocCheck.jl in tests

Open mhauru opened this issue 1 year ago • 2 comments

@willtebbutt and @sunxd3 brought up https://github.com/JuliaLang/AllocCheck.jl, a tool that checks whether a function may cause memory allocations. We could use it in tests kinda like how we use @inferred, to check that things that aren't expected allocate memory, don't.

mhauru avatar Sep 16 '24 16:09 mhauru

I think making Turing.jl allocation free is very challenging.

yebai avatar Mar 12 '25 21:03 yebai

I'm not sure that @mhauru is suggesting we could make the entire thing allocation-free, just specific pieces that we're confident ought not to allocate. I agree that making the whole thing allocation-free is probably not currently on the table.

willtebbutt avatar Mar 13 '25 09:03 willtebbutt