Hello!
compile()
isn’t supposed to cache the GCompiled
’s, it is assumed as a “pure function”. Only apply()
does so.
Please note once you called compile()
, you get its return value – a GCompiled
object - and you should use that one going forward. It is not connected with a GComputation
in any way so you can safely destroy the GComputation
, too (if you don’t need any recompilation, though).
Can you just use a GCompiled
object in your case? You can consider this is a “compiled function ready to use”.