search for: rhsqnextkvr

Displaying 3 results from an estimated 3 matches for "rhsqnextkvr".

2009 Mar 30
1
List assignment in a while loop and timing
...nvolved in list assignment. Consider the following code snippet(see below). The first line creates a reader object, which is the interface to 1MM key-value pairs (serialized R objects) spanning 50 files (a total of 50MB). rhsqstart initiates the reading and I loop, reading each key-value pair using rhsqnextKVR. If this returns NULL, we switch to the next file and if this returns null we break. If I comment out line A1, it takes 39 seconds on a quad core intel with 16GB ram running R-2.8 If I include the assignment A1 it takes ~85 seconds. I have preassigned the list in line A0, so I'm guessing ther...
2009 Mar 30
1
CTRL-C during .Call causes R to quit to command line
Hello, During a .Call e.g while(TRUE){ value <-rhsqnextKVR(rdr) ## has .Call in this function if(is.null(value)) break; } if I press CTRL-C, R exits straight to the command line. Q: How can I prevent this? I should point out that my library uses JNI, so I'm not sure if that is causing it. I'm using R-2.8 on Linux (RHEL 5) Thank you in advan...
2009 Apr 01
0
回复: R-help Digest, Vol 73, Issue 32
...nvolved in list assignment. Consider the following code snippet(see below). The first line creates a reader object, which is the interface to 1MM key-value pairs (serialized R objects) spanning 50 files (a total of 50MB). rhsqstart initiates the reading and I loop, reading each key-value pair using rhsqnextKVR. If this returns NULL, we switch to the next file and if this returns null we break. If I comment out line A1, it takes 39 seconds on a quad core intel with 16GB ram running R-2.8 If I include the assignment A1 it takes ~85 seconds. I have preassigned the list in line A0, so I'm guessing ther...