Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upOptimise `frank()` in GForce so as to avoid eval() penalty #1197
Comments
|
Hi there, I started typing up something on performance of rank vs frank but then I think this is the same issue. See my testing below, hopefully it helps. Cheers! First I setup a datatable where we have column A which we wish to group on and column B which we which to rank within each value of column A. We can find that where the number of groups in column A are small, then frank is faster. However, when the number of groups in column is grows then frank is far slower. Adding or removing the setkey on the data table does not appear to change performance. See code and results on my machine below: `
`
1: 1 0.1249878 secs 0.3281560 secs |
Relevant SO post: http://stackoverflow.com/a/31006848/559784