]> Sergey Matveev's repositories - public-inbox.git/commit
lei: avoid Spawn package when starting daemon
authorEric Wong <e@80x24.org>
Thu, 31 Dec 2020 13:51:51 +0000 (13:51 +0000)
committerEric Wong <e@80x24.org>
Fri, 1 Jan 2021 05:00:40 +0000 (05:00 +0000)
commitc3bdb8f03474d35ec8904f1758c4302159adfa57
tree51bca9494e132dbb6bcf4c9c5fcef16929632f42
parent52df89ced31a5685d37e17c62ccccd3db5aa3e62
lei: avoid Spawn package when starting daemon

Spawn was designed to speed up process spawning inside
long-lived daemons with largish memory usage.  It does not help
for short-lived scripts which only exist to start and connect to
a daemon.

This change actually speeds up initial lei startup from
~190ms to ~140ms(!).  Normal usage once the daemon is running
is unaffected, at <20ms for help text.

While we're in the area, simplify Cwd error message generation,
too.
lib/PublicInbox/LEI.pm
script/lei