Open kevinushey opened 10 years ago
Thanks for looking into this.
Which codebase to you use for the benchmarks ?
I've been using my own package Kmisc
which has a mess of C++ files: https://github.com/kevinushey/Kmisc
I'm not sure how good a job timeit
is doing here though -- after removing file existence checks, the rest of the time is actually in .Call
s so my (overly conservative, probably slow) C/C++ code is probably the culprit.
Although the current implementation of
attributes::compileAttributes()
is certainly 'fast enough', we're still about half the speed ofRcpp::compileAttributes()
. There are surely some low hanging fruit; e.g. usingtimeit
to profile:gives the plot
I can only imagine some of this slowness is related to e.g. unnecessary repeated reading of files, or lack of vectorization.