4 ms·
I guess the tradeoff is speed and convenience. If we wanted to have the absolute best performance, we would have to write web apps in C. But it would be quite
by tiangolo 8y ago
I guess the tradeoff is speed and convenience.
If we wanted to have the absolute best performance, we would have to write web apps in C. But it would be quite more cumbersome.
- jerf 8y agoIt's not a value judgment, which I feel (though I can't prove) you are still reading it is. But it isn't. It just is what it is. The performance characteristics of various technologies just... are. It's a mistake to read too much value judgment into it. I don't "hate" PyPy because it's not as fast as C, or love C because it's fast. They've got all sorts of characteristics, and a professional engineer ought to understand them as dispassionately as possible to make decisions about how to solve problems. PyPy is a solution to "my Python code is running slowly". For very little effort you can obtain a very cheap speedup. It may not be all you need, but it's very engineer-effort cheap. But it certainly isn't a solution to "my Python code is running slowly but I need it to run at C speeds", and there are a ton of other solutions to the problem "My Python code is running slowly", since Python is such a slow language on its own terms. (By contrast, "my C code is running slowly and I've already profiled it a lot, etc." is a huge problem.)
- tiangolo 8y agoYep, agree. Thanks for the clarification.