From c2d4e63756a6f070e38c16dff846e9b0a53d6f93 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Fri, 21 Jul 2017 18:44:40 +0200 Subject: [PATCH] perf: update textwrap to version 0.7.0 This version of textwrap uses a new wrapping algorithm that allocates fewer strings on the heap. The 05_ripgrep benchmarks shows a performance improvement of 3-15%. The build_help_long benchmark benefits the most since it uses longer help texts. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 0eb1023b..222b4d6b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ bitflags = "0.9" vec_map = "0.8" unicode-width = "0.1.4" unicode-segmentation = "~1.1.0" # 1.2.0 requires Rust 1.13.0 -textwrap = "0.6.0" +textwrap = "0.7.0" strsim = { version = "0.6.0", optional = true } ansi_term = { version = "0.9.0", optional = true } term_size = { version = "0.3.0", optional = true }