all() is slow?
Henrik Faber
hfaber at invalid.net
Tue Nov 8 07:09:20 EST 2011
On 07.11.2011 23:06, Chris Angelico wrote:
> On Tue, Nov 8, 2011 at 8:46 AM, david vierra <codewarrior0 at gmail.com> wrote:
>> But, you didn't write an all() function. You wrote a more specialized
>> allBoolean() function. I think this comparison is more fair to the
>> builtin all():
>
> So really, it's not "all() is slow" but "function calls are slow".
> Maybe it'd be worthwhile making an all-factory:
PLEASE say you're joking. If I saw code like that on any of our project,
this would definitely qualify for a DailyWTF.
Regards, Henrik
More information about the Python-list
mailing list