This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jackdied
Recipients
Date 2006-11-28.01:30:42
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
intobject.c:int_nonzero() gets called 100 times more than that
in the same test run.  Actually all builtins go through the 
fast slots machinery and not slot_nb_nonzero() so I'm not 
worried about speed (if there is any to be had).

I tried adding a nb_bool to listobject.c (currently it falls
back on tp_as_mapping->mp_length) and I couldn't tell the
difference with 
./python Lib/timeit.py "if [] or [] or [] or [] or [] or [] or [] or [] or []: pass"
So it looks like the places that matter are already fast.
History
Date User Action Args
2007-08-23 15:55:24adminlinkissue1600346 messages
2007-08-23 15:55:24admincreate