Skip to content

Fast version of Fisher's Exact Test

1 message · Steven McKinney

#
Depends on how many other programs, and how large they are, and how much
RAM you have on your machine.  If I repeatedly run the example I used below, 
my R session shows 170MB of memory usage, not a huge amount relative to total
memory, and not a huge amount even for 32 bit R.  But if your system has 2 GB 
of RAM and 1.9 GB is consumed by other processes, then this example will cause 
swapping and speed will be reduced.

So figuring out a solution requires understanding what it is that is causing
the slowdown - not enough RAM, other programs competing for CPU cycles...

You can try switching to 64 bit R but unless your 32 bit R is loading some large
data objects, leaving little RAM, you won't see much of a difference.
If you start R, and do rm(list = ls()) to ensure no big data objects are using up
RAM, does the example below still take a long time?

You haven't mentioned what operating system you are using, how much RAM you have
or what sessionInfo() reports on your machine.  That information will help to
figure this out.



Steven McKinney