ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
performance: initializing dictionary elements
by George Thomas other posts by this author
May 21 2002 2:39PM messages near this date
Re: string module | Re: performance: initializing dictionary elements
Hi everyone,
As part of a project I had to initialize elements in a large dictionary. I 
found Skip Montanaro's page of performance tips and the subsection 
"Initializing Dictionary Elements" presented an optimization using 
exceptions instead of conditional looping. I tried this out for my 
operation (which was the same one incidentally, a full-text index) but 
found that performance actually suffered. I'm using Python 2.1.1. Does 
anyone have any idea why this would happen?
rgds
-- 
-------------------------------------------------------------------------
who     : george thomas
what    : MSCS student
where   : college of computing/georgia institute of technology
business: Database Lab (CCB 104a)
email   : george@[...].edu
phone   : (404) 894-7008
that is all
-------------------------------------------------------------------------

-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
George Thomas
Skip Montanaro

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved