Raku / whateverable

🤖 Different IRC bots that operate on a bunch of prebuilt Rakudo versions
https://gist.github.com/Whateverable
GNU Affero General Public License v3.0
18 stars 14 forks source link

Add cache for zstd and lrzip checks #294

Open AlexDaniel opened 6 years ago

AlexDaniel commented 6 years ago

Commit a401e1da8df61ba6a93c5c233264730951c60345 added a few checks to make sure we get a useful message if zstd or lrzip are not installed. Problem is that these checks actually take ≈20ms which adds up to significant delays when doing some heavy lifting (e.g. in committable or bisectable). I think there's a way to do it by just slapping a once here and there, but I'm not sure.

AlexDaniel commented 6 years ago

FWIW I don't want to check anything during the startup because some bots don't need zstd or lrzip at all, and some bots only need them for some rarely used functionality (e.g. unicodable).

AlexDaniel commented 6 years ago

Actually, the best solution would be to resolve https://github.com/rakudo/rakudo/issues/1590. Adding a blocker label for now.