Using Terra (LuaJIT+LLVM) to Write Faster Extensions for Rpeople.mozilla.org6 points·by foomanmanfoo·12 anni fa·0 comments
foomanmanfoo·2 anni fa·discussUnsure of performance but using R's `data.table`(which has uses beyond this example so installing this library shouldn't be a one off) library(data.table) v <- rbindlist(list( data.table(e1=1, string='one'), data.table(e1=1, string='two'), data.table(e1=1, string='three'), data.table(e1=1, string='one'), data.table(e1=1, string='four'), data.table(e1=1, string='two')) ) v[, list(counter= sum(e1)),by= string]
foomanmanfoo·12 anni fa·discussI've been toying with LuaJIT+Terra for writing extensions to R (see http://people.mozilla.org/~sguha/blog/2013/08/01/rterra_firs...)