search for: hashfun

Displaying 1 result from an estimated 1 matches for "hashfun".

Did you mean: hashfn
2007 Nov 02
0
applying duplicated, unique and match to lists?
...cases (break even seems to be for quite small list elements like 2 doubles). 1) the new versions should also work for lists with a dim attribute (old versions has as.vector() which does not work for lists) Factor 10 speedup for row duplicates (here atomic matrices) > system.time(duplicated(x, hashFUN=function(x)paste(x, collapse="\r"))) user system elapsed 2.37 0.02 2.45 > system.time(duplicated(x, hashFUN=md5)) user system elapsed 0.51 0.00 0.51 > system.time(duplicated(x, hashFUN=list)) user system elapsed 0.17 0.00 0.17 2) Spee...