Kyle Evans e25ee296c9 stand: lua: enhance lfs.dir() to speed up kernels_autodetect
This eliminates a lot of stat() calls that happen when lualoader renders the
menu with the default settings, and greatly speeds up rendering on my
laptop.

ftype is nil if loader/loader.efi hasn't been updated yet, falling back to
lfs.attributes() to test.

This is technically incompatible with lfs, but not in a particularly
terrible way.

Reviewed-by:	cem
MFC-after:	4 days
Differential Revision:	https://reviews.freebsd.org/D27542
2021-01-29 12:47:29 -06:00
..
2020-09-11 13:28:37 +00:00
2019-12-11 17:37:53 +00:00
2020-09-09 00:39:47 +00:00
2021-01-28 17:24:24 +00:00
2019-11-12 22:31:59 +00:00
2019-12-04 16:56:11 +00:00
2019-12-11 17:37:53 +00:00
2020-04-06 23:16:05 +00:00
2020-09-09 00:39:47 +00:00