Author ganssauge
Recipients
Date 2003-11-28.16:01:25
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=792746

I think I found the answer:

apart from has_key() I'm using "dict != None".
If I leave that out in my test program both python variants 
run with the same speed.

The dict != None condition seems to trigger len(dict.keys()) 
and that seems to be way slower than before.

I definitely didn't time different scripts: the script is part of 
our CDROM production system and the only variables I had 
during my tests were python itself and the python path.

Find my test script attached...
History
Date User Action Args
2007-08-23 14:18:29adminlinkissue849662 messages
2007-08-23 14:18:29admincreate