Open wesm opened 8 months ago
I reproduced this in R as well. I then tracked it down to the NodeJS fs.watchFile
function which defaults the polling interval
to 5001 ms (docs).
There is also the fs.watch
function which the NodeJS docs recommend:
Using fs.watch() is more efficient than fs.watchFile and fs.unwatchFile. fs.watch should be used instead of fs.watchFile and fs.unwatchFile when possible.
But the same docs also warn that fs.watch
is OS-dependent and therefore less reliable 🤷.
Here's the relevant configuration:
What do folks think about switching to fs.watch
? Alternatively, we could lower the interval
– although I'm not sure what a better value is for this use-case.
I was surprised by how "laggy" the Output window is for the Python Runtime is — see this screen recording:
https://github.com/posit-dev/positron/assets/329591/1ae91aee-8013-4eb9-9a3d-8db9126c2df3
From the console, it is clear that the result of the execution comes back right way, but it takes a while for the Output window to finish updating with this output. Perhaps this is by design but it suggests possibly something being wrong — Ark doesn't have this problem