Just a heads-up to you and anyone else who notices stuff like this:
Performance is near and dear to me, and I *always* want to fix
performance problems. I think a lot of these little nits (like the
``len(seq)`` thing) simply come from the fact that some of the code in
Django is quite old (coming close to 4 years now!) and we had less of
an eye for these things back then.
So, Brian and anyone else: if you find stuff like this, file a ticket
and stick "performance" in the keywords field. If there's a patch I'll
review it and check it in immediately, and I'll prioritize (relatively
simple) performance issues over others when I'm looking for something
to do.
Jacob