Skip to content
Prev 15753 / 398500 Next

colSums in C

David Brahm  <brahm at alum.mit.edu> writes:
ISNA maps to the *function* R_IsNA and function calls are expensive.
Also, you are probably breaking some pipelining with the extra
conditional. Just for testing, what happens if you use isnan()
instead? 

We could potentially set things up so that the compiler gets a chance
to inline R_IsNA and friends, so I wonder how much we might gain.