[Rd] Problem using findVar( ) in combination with R's lazy evaluation

2009-08-20 Thread MarcelK
Hi All, I have a few small questions about the usage of the C findVar( ) function when used in C code called with '.Call'. In my case I create an R function with an argument. This function calls some C code in which I use findVar( ) to retrieve the values from the argument. Ofcourse normally I wo

Re: [Rd] .C(..., DUP=FALSE) memory costs depending on input size?

2008-11-07 Thread MarcelK
Thank you for your answer William. I've tried the parameter NAOK out and this is the result: (RED: FALSE, GREEN: TRUE) http://www.nabble.com/file/p20376259/RandC_2.png As you can see the green line is almost flat now, at least a lot better then when disabling this option. Still there is somet

Re: [Rd] .C(..., DUP=FALSE) memory costs depending on input size?

2008-11-06 Thread MarcelK
Sorry for spamming, legend with the plot is wrong: RED: DUP = TRUE GREEN: DUP = FALSE Pretty clear from the plot itself, but it's both wrong in the plot header and in the plot code (just swap 'h' and 'j'). -- View this message in context: http://www.nabble.com/.C%28...%2C-DUP%3DFALSE%29-memo

[Rd] .C(..., DUP=FALSE) memory costs depending on input size?

2008-11-06 Thread MarcelK
Hello, I'm trying to create my own C code for use within R. While optimizing the code I've noticed that even while only using pointers to get my data to C the time needed still depends on data (vector) size. To test this, I've created an empty C function to which I've send vectors containing var