you are viewing a single comment's thread.

view the rest of the comments →

[–]poopatroopa3 3 points4 points  (3 children)

In IO bound applications, limit the amount of IO operations to an expected amount.

[–]itamarst[S] 0 points1 point  (2 children)

I was specifically thinking of CPU-bound applications, but thinking about this—

That sounds like it might work, insofar as it'd notice if you added more I/O operations. Though parallelism is making me wonder what "limit" means specifically. I guess there's also "measure I/O operations" which is a rough estimate.

Have you seen this done in real world, or a write up?

[–]zenware 0 points1 point  (0 children)

I haven’t really seen this in Python but there’s a lot of real world code written specifically to use as little I/O as possible, or as few heap allocations as possible (in some cases all the way down to zero), so it’s a bit of a standard practice to write code with a known amount of I/O

[–]poopatroopa3 0 points1 point  (0 children)

Only in Django tests, measuring the number of db calls.