News for hackers. Stuff that matters.
Re:Python’s tug of war between beginner-friendly and advance... by ALittleLight on Thursday February 04, 2021 @08:59PM (#26032189)
That is interesting. Trying your timeit code I've come to see that maybe something was wrong about how I was estimating the different performance. I was just using cProfile and profiling the two functions with big inputs and then comparing the cumulative time results that way. When I use your timeit examples my results (Intel Core i7-6700K CPU @ 4.00GHz) are different and closer to yours (pythonic ~1% slower). Thanks for sharing.

There are no comments on this comment yet.