Pádraig Brady
697b8ce265
ls: avoid redundant processing when already escaping
...
This is mainly noticeable when the multi-byte code
within ls.c is triggered by multi-byte quotes.
$ seq 200000 | xargs touch
$ time ls-old -U --quoting=locale --hide-control-chars >/dev/null
real 0m0.483s
$ time ls-new -U --quoting=locale --hide-control-chars >/dev/null
real 0m0.430s
* src/ls.c (quote_name): Avoid rescanning the output looking for
unprintable chars when we know the quoting mode already escapes them.
* tests/misc/ls-misc.pl: Add tests for all quoting modes, with and
without -q, to verify this assumption.
2015-11-04 23:30:15 +00:00
..
2015-01-01 04:52:17 +00:00
2015-09-03 00:34:12 +01:00
2015-01-31 17:39:04 +01:00
2015-05-11 23:02:16 +01:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-10-19 11:25:42 +01:00
2015-10-06 11:24:27 +01:00
2015-01-01 04:52:17 +00:00
2015-10-08 03:54:02 +01:00
2015-09-12 02:27:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-10-27 17:25:12 +00:00
2015-11-04 23:30:14 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-06-24 17:04:01 +01:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-10-08 03:54:02 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-07-03 13:02:21 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-11-04 23:30:15 +00:00
2015-01-01 04:52:17 +00:00
2015-01-31 17:39:04 +01:00
2015-01-01 04:52:17 +00:00
2015-06-06 14:27:54 +01:00
2015-11-04 23:30:14 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 17:38:12 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-09-12 02:27:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-02-03 02:19:54 +01:00
2015-10-27 17:24:54 +00:00
2015-01-01 04:52:17 +00:00
2015-10-08 03:54:02 +01:00
2015-10-27 17:24:54 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-07-03 13:02:21 +01:00
2015-01-01 04:52:17 +00:00
2015-11-04 23:30:14 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-06-24 17:04:01 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-11-04 23:30:14 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-31 17:39:04 +01:00
2015-11-04 23:30:14 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-10 21:18:33 +00:00
2015-01-01 04:52:17 +00:00
2015-10-10 11:21:34 +01:00
2015-07-03 13:02:21 +01:00
2015-07-03 13:02:21 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-09-22 02:30:30 +01:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-11-04 23:30:14 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-05-11 23:02:16 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-11-04 23:30:14 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-11-04 02:03:41 +00:00
2015-01-14 12:20:32 +00:00
2015-05-11 23:02:16 +01:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-07-01 12:27:29 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-06-25 14:10:47 +01:00
2015-01-01 04:52:17 +00:00
2015-05-11 23:02:16 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-03-04 13:24:21 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-07-03 13:02:21 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-14 12:20:32 +00:00
2015-11-04 23:30:14 +00:00
2015-09-03 01:11:39 +01:00
2015-01-01 04:52:17 +00:00
2015-06-01 15:38:23 +01:00
2015-01-01 04:52:17 +00:00
2015-11-04 23:30:14 +00:00
2015-01-01 04:52:17 +00:00
2015-06-06 14:27:54 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-03-10 12:30:33 +00:00