I use ReverseDiff for a function that allocates quite considerable amount of memory inside. As a result, ReverseDiff allocates enormous amount of memory. Is it the expected behavior? Should one avoid allocations inside a function when using ReverseDiff?
Note that the original poster on Slack cannot see your response here on Discourse. Consider transcribing the appropriate answer back to Slack, or pinging the poster here on Discourse so they can follow this thread.
(Original message ) (More Info)