3 ms·
Not keen on hashing the file every second but I understand why... I'd rather it used filesystem modification events and responded accordingly. But that might mo
by sfgweilr4f 6y ago
Not keen on hashing the file every second but I understand why... I'd rather it used filesystem modification events and responded accordingly. But that might more more complex than what you intend.
But for simple scripts being live-coded that need to be quickly "up" and hot-swapped on rapid modification this looks fine. I could always increase the delay to a minute or hour or more if the changes were only occasionally changed.