Skip to content

Performance improvements for uniq

Jeremy Soller requested to merge bertinatto:improve_unique into master

Created by: bertinatto

  • Avoid heap allocations when comparing case-insensitively;
  • Write bytes directly to stdout, without converting to strings. The only exception is the counter for the -c option that is passed in as a fmt::Arguments to avoid using an external crate (itoa or numtoa).

Merge request reports