4 ms·
So it seems speed in Python is inversely proportional to readability, in his experience. One performance aspect of Python often overlooked is its functional pr
by peripetylabs 14y ago
So it seems speed in Python is inversely proportional to readability, in his experience.
One performance aspect of Python often overlooked is its functional programming features, which can make your code both faster and easier to read.
- crntaylor 14y agoI'm not experienced enough to know how much you can speed up your Python code by using functional features (I presume you man map, reduce, lambdas etc?) but given that the author has made a bit of a career out of making functional languages fast, I expect that he's considered it.
- peripetylabs 14y agoYeah that's what I mean. List comprehensions are faster than StringIO for string manipulation, for example. I always like to read about real-world applications of this stuff, the presentation was very interesting nonetheless.