Pass some more args by reference in select.cc
authorRupert Swarbrick <rswarbrick@gmail.com>
Tue, 26 May 2020 10:41:32 +0000 (11:41 +0100)
committerRupert Swarbrick <rswarbrick@gmail.com>
Wed, 27 May 2020 08:42:23 +0000 (09:42 +0100)
commitd681c9df85eba0ab5112aba5c4b9b89af4ad36a2
treedde1abfac624b210912c975663a4fe588efa7378
parent061d1f0c07623d741e56a36e7a3e5cd48da30d5a
Pass some more args by reference in select.cc

Before this patch, the code passed around std::string objects by
value. It's probably not a hot-spot, but it can't hurt to avoid the
copying.

Removing the copy and clean-up code means the resulting code is ~6.1kb
smaller when compiled with GCC 9.3 and standard settings.
kernel/register.h
passes/cmds/select.cc