From wdunlap at tibco.com  Thu Nov  6 21:12:01 2008
From: wdunlap at tibco.com (William Dunlap)
Date: Thu, 6 Nov 2008 12:12:01 -0800
Subject: [Rd] .C(..., DUP=FALSE) memory costs depending on input size?
In-Reply-To: <20368695.post@talk.nabble.com>
References: <20368695.post@talk.nabble.com>
Message-ID: <77EB52C6DD32BA4D87471DCD70C8D7001DE979@NA-PA-VBE03.na.tibco.com>

> -----Original Message-----
> From: r-devel-bounces at r-project.org 
> [mailto:r-devel-bounces at r-project.org] On Behalf Of MarcelK
> Sent: Thursday, November 06, 2008 12:06 PM
> To: r-devel at r-project.org
> Subject: [Rd] .C(..., DUP=FALSE) memory costs depending on input size?
> 
> 
> 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.

Does using NAOK=TRUE in the .C() help?  That would avoid
an NA-scan of the input vectors.

Bill Dunlap
TIBCO Spotfire Inc
wdunlap tibco.com  



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