cem 46a4fa605e rc.subr: Implement list_vars without using 'read'
'read' pessimistically read(2)s one byte at a time, which can be quite
silly for large environments in slow emulators.

In my boring user environment, truss shows that the number of read()
syscalls to source rc.subr and invoke list_vars is reduced by something like
3400 to 60.  ministat(1) shows a significant time difference of about -71%
for my environment.

Suggested by:	jilles
Discussed with:	dteske, jhb, jilles
Differential Revision:	https://reviews.freebsd.org/D18481
2018-12-11 01:38:50 +00:00
..
2017-10-31 00:07:04 +00:00
2018-08-21 17:07:52 +00:00
2018-09-05 15:25:23 +00:00
2018-03-05 16:11:07 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00