Mateusz Guzik
858937bea4
pfctl: cache getprotobynumber results
...
As for example pfctl -ss keeps calling it, it saves a lot of overhead
from elided parsing of /etc/nsswitch.conf and /etc/protocols.
Sample result when running a pre-nvlist binary with nfs root and dumping
7 mln states:
before: 24.817u 62.993s 1:28.52 99.1%
after: 8.064u 1.117s 0:18.87 48.5%
Idea by Jim Thompson
Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")
2021-07-01 21:31:45 +00:00
..
2021-06-03 08:36:11 -08:00
2019-08-13 20:06:55 +00:00
2021-04-10 10:13:29 +01:00
2019-11-21 01:24:49 +00:00
2019-11-21 01:24:49 +00:00
2019-10-18 12:32:01 +00:00
2021-03-07 17:29:03 -06:00
2021-06-23 10:26:56 -06:00
2020-12-01 23:25:21 +00:00
2020-11-20 16:34:01 +00:00
2020-10-03 18:42:15 +00:00
2021-05-17 16:34:53 -07:00
2020-05-02 00:10:25 +00:00
2021-03-08 12:39:05 -05:00
2019-06-28 22:12:43 +00:00
2019-08-13 20:06:55 +00:00
2021-04-03 16:29:14 -04:00
2020-10-09 14:03:45 +00:00
2021-06-29 14:29:15 -07:00
2020-09-28 04:30:31 +00:00
2021-05-28 18:51:25 -08:00
2020-10-25 01:36:33 +00:00
2019-02-11 00:11:02 +00:00
2020-12-12 07:22:38 +00:00
2021-01-22 12:33:27 -06:00
2021-04-06 16:32:57 -07:00
2021-03-28 14:45:05 -04:00
2020-11-29 13:45:53 +00:00
2021-05-03 14:38:52 +03:00
2021-05-04 14:06:31 -06:00
2019-06-27 12:37:44 +00:00
2021-06-04 12:55:59 +02:00
2020-08-07 12:19:21 +00:00
2020-09-29 17:52:15 +00:00
2021-02-11 06:03:53 +01:00
2020-09-02 18:15:57 +00:00
2021-05-21 19:51:18 +03:00
2021-06-29 09:21:57 +02:00
2021-06-23 10:37:40 -04:00
2020-10-03 18:47:50 +00:00
2021-02-21 11:38:21 +02:00
2020-08-19 17:09:58 +00:00
2019-12-07 15:17:00 +00:00
2020-10-09 14:03:45 +00:00
2021-06-26 14:09:28 -07:00
2021-02-12 11:30:52 -07:00
2021-04-17 23:16:17 +02:00
2020-08-25 13:30:24 +00:00
2019-09-05 14:15:47 +00:00
2019-09-05 14:15:47 +00:00
2021-05-07 13:12:30 +01:00
2021-07-01 21:31:45 +00:00
2021-03-19 11:18:05 -07:00
2021-01-11 19:03:46 -07:00
2020-11-26 04:29:30 +00:00
2020-09-21 17:59:45 +00:00
2021-06-05 14:32:18 +00:00
2021-02-02 12:01:38 +00:00
2020-04-04 00:56:56 +00:00
2021-04-13 06:45:22 +02:00
2020-12-25 17:42:47 -08:00
2019-12-11 17:37:53 +00:00
2020-12-11 22:52:12 +00:00
2020-02-13 18:37:17 +00:00
2020-06-04 22:58:37 +00:00
2020-07-05 13:08:17 +00:00
2020-05-19 12:16:44 +00:00
2021-05-01 11:10:03 +00:00
2021-02-21 11:38:21 +02:00
2020-06-18 23:12:55 +00:00
2021-06-02 15:37:51 -06:00
2020-09-21 09:01:10 +00:00
2021-06-30 09:57:51 +02:00
2020-09-18 17:17:46 +00:00