Open hsselman opened 5 years ago
Hello hsselman,
thank you for all the three reports and the feedback! We will take a closer look at them and get back when we have more details.
In general, FastR usually needs some time to warm-up. You can try running the benchmark in a loop for few times and see if the performance is improving. If you would like to dig deeper, then you can run with --vm.Dgraal.TraceTruffleCompilation=true
which will print some basic log of background compilation. The benchmark will reach peak performance when there is no compiler activity. Moreover, you can also use the built-in R level profiler (--cpusampler
) to see if there is anything that stands out.
Another thing to note is that at this point FastR performance is not very good with code that does a lot of transitions between the native code of packages and the R runtime and unfortunately that is typical of some of the tidyverse packages (especially dplyr
). In other words: we are much better at running R code than C code that transitions back and forth between R and C. Recently we've invested most of our effort into the compatibility with tidyverse and other important packages that use C/C++ extensively and now we're planning to work on their performance.
Hi steve-s,
Thanks for taking a look and your answer! The provided profilers can hopefully help us troubleshoot future performance issues.
We'll eagerly await further performance improvements on FastR running tidyverse packages, as they are quite central to Datascience work. Until then, we'll try to create workarounds for bottlenecks.
Keep up the good work!
Hi,
I am using graalvm and fastr rc-15. I was converting pdf objects using base functions and
slam
package in fastr. I got no errors using the functions I want to use. But I did found it extremely slow usingas.raster
andslam::as.simple_triplet_matrix
.For example, I made this file (let's call it
converting_pdf.R
):Sourcing the files in R and fastR (
source("converting_pdf.R")
) gives me:Do you know what is happening? Thanks in advance and for developing fastR!
PS: Good news! Function
pdf_render_page
is faster in fastr!