Skip to content
Prev 2755 / 10988 Next

[Rcpp-devel] R.e. Speed gain assistance (Wray, Christopher)

Hi - thanks. Sure, my description was not very good. I suppose its a nested sample - of a sample - with an operation (+) inbetween....(and a function call...).

Suggestion was useful though, thanks. So..I can shave off 5 seconds (from a total of 20-ish) by chucking away
floor, amending runif and just making sure I am not introducing anything 'biased' via the convert.

I know that R 'converts' floating values for index positions...but (for some reason) I did not think to check that in works like that for NumericVector..too.
...I'll take the 5 seconds regardless! :-) ta, chris.
Message-ID: <49B98DAFD025E24981E0DC5A9D8100CE458FFE@DB3PRD0104MB119.eurprd01.prod.exchangelabs.com>
In-Reply-To: <CADNH-Pu9x9Z0GMH5NObhoQ4aMd0tfFzy66Sawcs_mvC3uUMY7A@mail.gmail.com>