perl-App-QuoteCC

Take a quote file and emit a standalone program that spews a random quote

I wrote this program because using fortune(1) and Perl in _/etc/profile_ to emit a random quote on login was too slow. On my system fortune(1) can take ~100 ms from a cold start, although subsequent invocations when it's in cache are ~10-20 ms. Similarly using Perl is also slow, this is in the 80 ms range: perl -COEL -MYAML::XS=LoadFile -E'@q = @{ LoadFile("/path/to/quotes.yml") }; @q && say $q[rand @q]' Either way, when you have a 40 ms ping time to the remote machine showing that quote is the major noticeable delay when you do _ssh machine_. quotecc solves that problem, showing a quote takes around 4 ms now. That's comparable with any hello wold program in C that I produce.

There is no official package available for openSUSE Leap 15.5

Distributions

openSUSE Tumbleweed

openSUSE Leap 15.5

openSUSE Leap 15.4