> mytimeit.Timeit(f1)
>> > '37.91 usec/pass'
>> mytimeit.Timeit(f2)
>> > '37.50 usec/pass'
>>
>>
Btw (shameless plug) - To clarify, the mytimeit module I am referring to in
these posts is my
own wrapper over timeit.
http://code.activestate.com/recipes/389767-timeit-module-wrapper/
--
On Mon, Aug 1, 2011 at 7:51 PM, Noufal Ibrahim wrote:
> Anand Balachandran Pillai writes:
>
> > On Mon, Aug 1, 2011 at 6:08 AM, Anand Chitipothu >wrote:
>
> [...]
>
> > It is more subtler than that.
> >
> > List comprehensions are faster than map functions when
> > the latter needs to invoke a