|
|
|
|
|
by flowerthoughts
240 days ago
|
|
The win here might be using HashMap to avoid having to sort all entries. Then sorting at the end instead. What's the ratio of duplicates in the benchmark input? There is no text encoding processing, so this only works for single byte encodings. That probably speeds it up a little bit. Depending on the size of the benchmark input, sort(1) may have done disk-based sorting. What's the size of the benchmark input? |
|