Restricting imports in that way is unlikely to reduce memory
consumption. A module will be loaded if it is transitively required
from the program's main module, whether or not any of its definitions
are used.

The `raco demod` tool can flatten some programs into a single module
and discard unused definitions. That flattening still will not depend
on `only-in` restrictions, because it has the whole program and can
look at actual uses.

At Sun, 14 Aug 2016 01:31:25 -0700 (PDT), Lux wrote:
> Hi, I use `(require (only-in aModule aFunction anotherFunction))` a lot to 
> make use of modules safer, but it also can lead to reduced memory consumption 
> not loading the module on its entirety? Or this is not the case?
> What tools I can use to evaluate this myself on the linux platform?
> 
> Thanks in advance.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to