[R] hash argument of new.env()

Thomas Lumley tlumley at u.washington.edu
Tue Oct 8 18:16:51 CEST 2002


On Tue, 8 Oct 2002, Jonathan Rougier wrote:

> Hi everyone,
>
> There is no mention in ?new.env (R-1.6.0) of what the effect of setting
> the hash argument of new.env() actually does.  What does it mean in
> performance terms to say that "the environment will be hashed"?
>

If the environment has a lot of things in it then lookup should be faster
with hashing -- it should be roughly independent of the number of things
in the environment.   I believe that in the bioconductor project this is
actually noticeable when you have data on 5000 genes in an environment.

	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list