search for: isvirtualext

Displaying 1 result from an estimated 1 matches for "isvirtualext".

2016 Nov 26
0
methods:::.selectSuperClasses and byte compilation
...T(0) system.time(replicate(100,Matrix::crossprod(someMatrix))) ## fast ================================== By tracing compiler::cmpfun, I found that the reason may be that invoking Matrix::crossprod calls methods:::.selectSuperClasses which creates and runs the following function function (exti) {!isVirtualExt(exti) && length(exti at by) == 0 && exti at simple} and thus that this function is byte-compiled each time Matrix::crossprod is called. Is there a straightforward way for users / R package writers to avoid such problems, or shouldn't it be fixed in the R sources ? Thanks, F...