3 ms·
Please sir don't blame Python for a PhD's NumPY mess.
by robertlagrant 5y ago
Please sir don't blame Python for a PhD's NumPY mess.
- emteycz 5y agoWell a naive Python solution would be much slower than the Numpy one, so...
- throwaway894345 5y agoSometimes this is true, and the parent's criticism is certainly unhelpful. That said, I've definitely seen people try to optimize with numpy and end up with something that's even slower (Numpy isn't a substitute for mechanical sympathy, but it's often treated as magic dust by the Python community). Basically Python performance is just a hot mess all around. :(
- robertlagrant 5y agoI guess I'm the OP. Sorry my comment didn't help you; please let me know what you need.
- deleted 5y ago[deleted]
- DeathArrow 5y ago>Basically Python performance is just a hot mess all around. Maybe don't use Python where performance matters? Just a thought.
- throwaway894345 5y agoThat's the right answer, but it's not helpful for people who don't get to make the call on what language to use. Moreover, a lot of people don't think an application will have a performance problem until suddenly it does (either because of scale or shifting requirements or whatever). Even worse, a whole lot of people simplistically believe that you can just throw C/multiprocessing/numpy at any Python performance problem, which is how you make Python even slower and less maintainable.
- throwaway894345 5y agoI'm no great fan of Numpy, but other Python performance solutions aren't more maintainable. :(