3 ms·
I don't want to spam the link, but I actually just posted a top-level comment to a version of this I published back in 2020 that does caching and cache invalida
by ComputerGuru 3y ago
I don't want to spam the link, but I actually just posted a top-level comment to a version of this I published back in 2020 that does caching and cache invalidation, using the hash of the script as the key for the compiled output path.
EDIT:
Actually, that was how the original version worked, but it had the limitation that once the script changed you could no longer determine the path to the previous executable output to delete, so you could end up accumulating a lot of defunct binaries. Now the hash is stored alongside the target.