search for: parsedoubl

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

Did you mean: parsedouble
2012 Mar 16
1
rJava call performance
Hello, I am getting pretty poor rJava call performance > system.time(for (i in 1:1000) J("java.lang.Double")$parseDouble(as.character(i))) user system elapsed 4.884 0.000 4.900 i.e. 5 milliseconds per very simple call on a very fast cpu. JNI calls themselves are said to be pretty fast nowadays (10...40ns). It probably goes accross reflection but still doing pretty much nothing useful in 5ms is horrible b...