Re: svn commit: r268566 - head/usr.bin/users

2014-07-14 Thread Alexander Nasonov
Joerg Sonnenberger wrote: > On Sat, Jul 12, 2014 at 09:34:28PM +1000, Bruce Evans wrote: > > Run time: > > C++ sort() was twice as slow as qsort() for sorting 1 million dummy > > users in the allocation tests. About 8 seconds instead of 4, except > > when compiled with -g -O0 it was 15 seconds ins

Re: svn commit: r329585 - head/stand/lua

2018-02-19 Thread Alexander Nasonov
Kyle Evans wrote: > +function core.isSingleUserBoot() > + local single_user = loader.getenv("boot_single"); > + return single_user ~= nil and single_user:lower() == "yes"; > +end Just curious, why do you end all lines with semi-colons? It's not very common in Lua code. This version looks

Re: svn commit: r329587 - head/stand/lua

2018-02-19 Thread Alexander Nasonov
Kyle Evans wrote: > + -- Swap the first two menu items on single user boot > + if (core.isSingleUserBoot()) then > + local multiuser = menu_entries[1]; > + local singleuser = menu_entries[2]; > + > + menu_entries[2]

Re: svn commit: r329609 - head/stand/lua

2018-02-19 Thread Alexander Nasonov
Ian Lepore wrote: > On Mon, 2018-02-19 at 22:29 +, Kyle Evans wrote: > > > > +???-- Swap the first two menu entries > > +???menu_entries[1], menu_entries[2] = menu_entries[2], > > +?? menu_entries[1]; > > ? > > IMO, this is the s