3 ms·
Is it so trivial to know if "some additional tick of work was done" without knowing how long something is going to take?
by willsmith72 3y ago
Is it so trivial to know if "some additional tick of work was done" without knowing how long something is going to take?
- orhmeh09 3y agoyou are right -- it is not trivial, and heavily dependent on your use case. on my own scripts that run some kind of process on a CSV or Parquet file of a great deal of rows -- whose length I know, or can guess approximately based on file size and row width -- I passed a number and a function argument that would trigger after every so many rows. by default it would just print i/N every sqrt(N) times. this was ideal for my use case to keep an eye on it running in a tmux session.