<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Sep 19, 2017 at 11:13 AM, Adam Lindberg <span dir="ltr"><<a href="mailto:hello@alind.io" target="_blank">hello@alind.io</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Cost wise I'm not sure, but I would advice you to benchmark for your use case.<br></blockquote><div><br></div><div>Every time you purge a module, each process heap is scanned for any sign of the old literals (aka constants) and if a literal is found a GC is done of that process which copies the literal onto its heap.</div><div><br></div><div>So the cost depends on the total heap size of all running processes and the number of processes that have a reference to those literals on their heaps at the moment of the purge.</div><div><br></div><div>Lukas</div><div><br></div></div></div></div>