4 ms·
As someone who uses python in their day job, I agree with this. When you spend more time io bound, it’s not an issue. If your python code is choking on cpu tim
by ehutch79 4y ago
As someone who uses python in their day job, I agree with this.
When you spend more time io bound, it’s not an issue. If your python code is choking on cpu time, a lower level language is probably more appropriate.
- gpderetta 4y agoAs someone who uses python in their day job, "IO bound" is a lie that is perpetuated to cover for the failing of the language. IO is very fast these days and python has the capacity of choking the cpu even on genuinely io bound problems . For example, do you think that python is an appropriate language to write pylint?
- dekhn 4y agoBy definition, an IO bound problem does not "choke the CPU", because at that point, it would be CPU-bound.
- ehutch79 4y agoNetwork DB access is what I'm thinking about, not reading less than a K from on disk file. Also, any external API is an example. To answer your question; "it depends". Is pylints speed an issue? If not, then it's fine, if it is, the sure write it in go or rust or whatever. Javascript has a great example of this in esbuild.