[R] hash argument of new.env()
Robert Gentleman
rgentlem at jimmy.harvard.edu
Tue Oct 8 16:17:27 CEST 2002
As Peter said,
hashing tends to be effective if
1) you have lots of things (most R environments in practice have
very few objects so hashing is not so important, but for base it
is).
2) you access them individually. If for example you will always
apply some operation to all the objects (or even most, I think) then
a hash table doesn't really help and can hurt.
But for some operations (especially in comp. bio.) they are very
helpful and substantially reduce the time used to do lookups.
On Tue, Oct 08, 2002 at 11:58:24AM +0100, 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"?
>
> Thanks, Jonathan.
> --
> Jonathan Rougier Science Laboratories
> Department of Mathematical Sciences South Road
> University of Durham Durham DH1 3LE
> tel: +44 (0)191 374 2361, fax: +44 (0)191 374 7388
> http://www.maths.dur.ac.uk/stats/people/jcr/jcr.html
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
--
+---------------------------------------------------------------------------+
| Robert Gentleman phone : (617) 632-5250 |
| Associate Professor fax: (617) 632-2444 |
| Department of Biostatistics office: M1B20
| Harvard School of Public Health email: rgentlem at jimmy.dfci.harvard.edu |
+---------------------------------------------------------------------------+
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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