freebsd-dev/stand/lua
Kyle Evans 9a0904b0e0 stand/lua: Cache swapped menu, and don't create locals for swapping
Building the swapped welcome menu (first two items swapped) is kind of a
sluggish, because it requires a full (recrusive) shallow copy of the welcome
menu. Cache the result of that and re-use it later, instead of building it
everytime.

While here, don't create temporary locals just for swapping. The following
is just as good:

x, y = y, x;

Reported by:	Alexander Nasonov <alnsn@yandex.ru> (swapping)
2018-02-19 22:29:16 +00:00
..
color.lua stand/lua: Round up some more style.lua(9) concerns 2018-02-19 17:51:33 +00:00
config.lua stand/lua: Add copyright notice in places 2018-02-19 18:11:35 +00:00
core.lua stand/lua: Change boot menu items' names when swapped 2018-02-19 17:40:19 +00:00
drawer.lua stand/lua: Re-order locals after copyright notice; require comes first 2018-02-19 17:54:22 +00:00
loader.lua
Makefile
menu.lua stand/lua: Cache swapped menu, and don't create locals for swapping 2018-02-19 22:29:16 +00:00
password.lua stand/lua: Add copyright notice in places 2018-02-19 18:11:35 +00:00
screen.lua stand/lua: Round up some more style.lua(9) concerns 2018-02-19 17:51:33 +00:00