reloading icon indicating copy to clipboard operation
reloading copied to clipboard

improvement: check file change date/hash and only reload if changed

Open laundmo opened this issue 3 years ago • 2 comments

stat the file, or compare to previous hash, to only reload the code when changes occured.

laundmo avatar Jun 01 '21 23:06 laundmo

Hi @laundmo, I don't see why would you use reloading for that. You could just use a timer that every so often check the file's hash and if that changed it execute the code.

s39674 avatar May 20 '22 13:05 s39674

to clarify: i meant to only reload if the file has changed, not to run the code on a timer.

this is so that reloading has the performance impact of just a single stat, instead of "reloading" even if the file has no changes.

laundmo avatar May 20 '22 15:05 laundmo