I've been trying to figure out this mysterious issue posted today on Discourse. A user is seeing allocations, yet using @code_*
and Cthulhu don't turn up any calls which could be responsible for so many allocations. Using the allocation profiler wasn't much help either: it showed a bunch of allocations seemingly related to tuple indexing and dynamic dispatch (e.g. apply
stuff), but I can't tell why those are happening because I can't coax out IR which shows such calls.
More vexing is that trying to reduce the MWE to use lower-level library functions makes the allocations go away. Normally that would make me suspect something like inlining, but I have no way to test that because again the IR looks fine...
Last updated: Nov 06 2024 at 04:40 UTC