Re:Kubernetes is a red flag signalling premature optimisation
by davnicwil on Monday July 04, 2022 @04:33AM
(#31974839)
How do you know what the performance will be in what language or needs to be, in numerical terms, before you are running the system in practice?
[ Parent
| on HN ]
Re:Kubernetes is a red flag signalling premature optimisation
by ocius on Monday July 04, 2022 @04:45AM
(#31974909)
You can't really tell for a Web App whether it'll be faster in JS or Python, but you can definitely expect a Computer Vision application with lots of heavy number crunching to be a lot faster in C++ than in Python. We have actually also made comparisons, and even if you use things like numpy and Python bindings for OpenCV, you won't reach the speed that a C++ application achieves easily without optimization.
Re:Kubernetes is a red flag signalling premature optimisation
by catwell on Monday July 04, 2022 @05:33AM
(#31975199)
That depends a lot on what that CV application does and what hardware it runs on. Naive C++ (that runs on CPU) is usually much slower than using Python as glue for libraries that run on GPU.
Re:Kubernetes is a red flag signalling premature optimisation
by jrumbut on Monday July 04, 2022 @05:11AM
(#31975068)
For a lot of applications there are pretty straightforward calculations to meet a desired frame rate.
Also I've seen UX research that established some guidelines for how long something can take while still feeling responsive allowing a user to remain focused.
Knowing you can achieve the required/desired performance in any given language is mostly a matter of experience solving similar problems.