3 ms·
You read >I doubt you could have made it faster even writing the entire thing directly in C or C++. as > a statement that they implemented a proper and bespo
by inertiatic 6y ago
You read
>I doubt you could have made it faster even writing the entire thing directly in C or C++.
as
> a statement that they implemented a proper and bespoke algorithm, not that the speed of Python is greater than C.
?
- mlthoughts2018 6y agoYou seem fundamentally confused, for example with tools like Cython. Many extension module implementations in Python are literally as fast as pure C (not just nearly as fast with minor extra CPython overhead, but literally as fast as pure C by deliberately bypassing CPython VM loop and data models).
- inertiatic 6y agoCython can be as fast as C for simple use cases. Because you're writing regular Python for a production service though, and not artificially writing optimized examples, then you will occasionally have to pay extra costs. Are you perhaps a bit too invested in your own narrative?
- deleted 6y ago[deleted]
- IncRnd 6y agoYes. If the implementation language isn't the determining factor for speed, then what is the cause? There is a branch of Computer Science called Algorithmics[0], wherein one expression of measurement is called Big-O notation[1]. [0] https://en.wikipedia.org/wiki/Algorithmics https://en.wikipedia.org/wiki/Algorithmics [1] https://en.wikipedia.org/wiki/Big_O_notation https://en.wikipedia.org/wiki/Big_O_notation