Mahmoud Al-Qudsi 06317f0a98 Optimize __fish_print_hostnames hosts file loading/parsing
Reordering the `getent hosts` and read from `/etc/hosts` combined with
minimizing shelling and job invocations for parsing the output results
in a profiled and benchmarked ~42% decrease in the time it takes to run,
and that's on a machine with a very small hosts list in the first place.

This update also fixes the hadling of IPv6 addresses in the hosts
output, which were previously ignored, and ignores 127.* loopback
addresses in addition to the 0.0.0.0 address (plus adds support for
shorter IPv4 notations).
2019-09-05 22:44:09 -05:00
..
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2016-11-27 21:27:22 -08:00
2019-05-05 12:09:25 +02:00
2018-05-12 13:48:32 +02:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2019-06-12 10:22:46 +02:00
2016-11-27 21:27:22 -08:00
2017-07-13 11:53:29 -07:00
2016-11-27 21:27:22 -08:00
2017-10-01 01:11:17 -07:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2019-05-06 17:06:40 +02:00
2019-05-05 17:31:33 +02:00
2016-11-27 21:27:22 -08:00
2018-11-22 12:43:35 +01:00
2016-11-27 21:27:22 -08:00
2016-11-27 21:27:22 -08:00
2016-11-27 21:27:22 -08:00
2016-11-27 21:27:22 -08:00
2019-05-05 12:09:25 +02:00
2019-02-14 10:57:38 +01:00
2016-11-27 21:27:22 -08:00
2018-11-22 12:43:35 +01:00
2018-11-22 12:43:35 +01:00
2019-03-09 13:44:03 -08:00
2017-04-05 15:31:13 -07:00
2016-11-27 21:27:22 -08:00