Skip to content
Prev 108683 / 398500 Next

reading very large files

Forgot to say, in your script you're reading the rows unordered
meaning you're jumping around in the file and there is no way the
hardware or the file caching system can optimize that.  I'm pretty
sure you would see a substantial speedup if you did:

sel <- sort(sel);

/H
On 2/2/07, Henrik Bengtsson <hb at stat.berkeley.edu> wrote: