4 ms·
What about Python performance is awful in AI? All of the hard stuff is delegated to a C library or the GPU.
by whalesalad 3y ago
What about Python performance is awful in AI? All of the hard stuff is delegated to a C library or the GPU.
- d357r0y3r 3y agoThere's tons of glue code that gets written in Python.
- tl 3y agoPython makes it hard to get this right. Simple idioms result in copies of large collections or other work shifting from C to Python. The state-of-the-art of Python profiling [1] has to target this problem to the exclusion of other concerns. [1]: https://www.thestrangeloop.com/2022/python-performance-matters.html https://www.thestrangeloop.com/2022/python-performance-matte...