nif_strsort
NIF sorting list of strings done with C++
Usage
Strsort.sort(["xir", "i", "el"])
# ["el", "i", "xir"]Installation
Add to deps in mix.exs:
{:strsort, "~> 0.1.0"}Works on Elixir 1.7+
Performance
- See benchmark
- Slightly wins by speed on big data (> 100K).
- Memory usage is much more effective on any data.
Commands
-
Interactive shell:
$ make cli -
Run benchmarks:
$ make bench $ make bench/fast -
Run tests:
$ make test