|
|
|
|
|
by toxik
10 days ago
|
|
Not my experience, actually. Numba and other such techniques (like having some hot paths in C/Rust/whatever) works, but eventually just allocating and deallocating Python objects starts to become a measurable problem. Especially if you have any kind of fancy metaclasses, descriptors, etc. "So don't"--ok, so give up Python's dynamic features? Why bother at that point. Now it is so cheap to write code anyway, why bother with Python at all? Have a design document in actual English. |
|
But if you can optimize C, most often you can also optimize Python.
I have a SLAM implementation in pure Python+Numba where all points/keyframes are kept in a single flat table, no allocation.