Fabian Homborg 2de38ef7bf [string] Chunk reads
Profiling with callgrind revealed that about 60% of the time in a `something | string match` call
was actually spent in `string_get_arg_stdin()`,
because it was calling `read` one byte at a time.

This makes it read in chunks similar to builtin read.

This increases performance for `getent hosts | string match -v '0.0.0.0*'` from about 300ms to about 30ms (i.e. 90%).
At that point it's _actually_ quicker than `grep`.

To improve performance even more, we'd have to cut down on str2wcstring.

Fixes #4604.
2017-12-20 14:30:41 +01:00
..
2017-09-01 00:14:42 -07:00
2017-07-12 22:38:24 -07:00
2017-09-01 00:14:42 -07:00
2017-12-20 14:30:41 +01:00
2017-11-16 10:48:21 -08:00
2017-11-16 10:48:21 -08:00
2017-05-06 22:08:07 -07:00
2017-02-14 18:48:27 -08:00
2017-09-26 08:19:33 -05:00
2017-06-20 17:18:59 -07:00
2017-05-01 22:05:35 -07:00
2017-06-16 21:01:56 -07:00
2017-09-01 00:14:42 -07:00
2017-09-01 00:14:42 -07:00
2017-09-01 00:14:42 -07:00
2017-06-16 21:01:56 -07:00
2017-02-11 21:30:38 -08:00
2016-05-29 22:24:29 -07:00
2017-09-01 00:14:14 -07:00
2017-09-01 00:14:42 -07:00
2017-02-14 18:48:27 -08:00
2017-06-18 22:10:19 -07:00
2017-05-01 22:05:35 -07:00
2017-06-18 22:10:19 -07:00
2017-08-07 18:31:20 -07:00
2017-06-23 23:19:09 -07:00
2017-09-24 13:43:50 -05:00
2017-08-06 16:05:51 -07:00
2017-08-06 16:05:51 -07:00
2017-11-16 10:48:21 -08:00
2017-11-16 10:48:21 -08:00
2017-08-18 16:52:39 -07:00
2017-01-24 15:24:13 -08:00
2017-01-24 15:24:13 -08:00
2017-02-14 18:48:27 -08:00
2017-02-14 18:48:27 -08:00
2017-06-17 22:51:25 -07:00
2017-08-06 16:05:51 -07:00
2017-12-10 20:12:40 -08:00
2017-10-11 00:08:26 -07:00
2017-10-11 00:08:26 -07:00