Skip to content
Prev 59383 / 63424 Next

From .Fortran to .Call?

I?ve recoded a version of one of my quantile regression fitting functions to use .C64 from dotCall64 rather than .Fortran.
For a moderately large problem with n = 500,000 and p = 5, and solving for  1:49/50 quantiles the new version shows
a 3% speedup, although for smaller problems it is actually slower that the .Fortran version.  So, I?m (provisionally) 
unimpressed by the claims that .Fortran has a big ?overhead? performance penalty.  Compared to the(more than) an order of
magnitude (base 10) improvement that moving from R to fortran produces,  3% isn?t really worth the (admittedly) minimal
additional coding effort.