Although the current implementation of attributes::compileAttributes() is certainly 'fast enough', we're still about half the speed of Rcpp::compileAttributes(). There are surely some low hanging fruit; e.g. using timeit to profile:
plot(timeit(attributes::compileAttributes()))
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.