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
..
2019-08-13 20:06:55 +00:00
2019-11-21 01:24:49 +00:00
2019-11-21 01:24:49 +00:00
2019-08-13 20:06:55 +00:00
2020-10-09 14:03:45 +00:00
2021-04-06 16:32:57 -07:00
2021-03-28 14:45:05 -04:00
2021-05-04 14:06:31 -06:00
2021-02-11 06:03:53 +01:00
2020-10-09 14:03:45 +00:00
2021-04-17 23:16:17 +02:00
2020-11-26 04:29:30 +00:00
2019-12-11 17:37:53 +00:00
2020-07-05 13:08:17 +00:00