Re:Anti-Patterns in Python Programming
by bkeroack on Wednesday July 09, 2014 @02:18PM
(#8011332)
Fair enough. I said "allegedly" because I had never personally measured the performance difference.
Even though you could construe map as "half as fast" (or twice as slow) as the equivalent comprehension, I don't see a difference of ~1 usec making any difference in my code thus far. Good to know, though.
Even though you could construe map as "half as fast" (or twice as slow) as the equivalent comprehension, I don't see a difference of ~1 usec making any difference in my code thus far. Good to know, though.