List of Numbers

Steve Holden sholden at holdenweb.com
Sun Apr 6 11:06:14 EDT 2003


"Simon Faulkner" <news at titanic.co.uk> wrote in message
news:m6009vst7snfmo645pd9h8clbgio2dp0lp at 4ax.com...
> Thanks for all the help on this chaps,
>
> The file has changed and I am now importing 25,000 15 digit numbers!
>
> I am compiling a report as I go on each number, wether is is duped
> within this batch and then looking it up in a MySQL database.
>
> It seems to slow down as it goes and I guess that this is the overhead
> of checking each number against the dictionary?
>

Nope. Dictionary access time grows very slowly as the size of the dictionary
increases. The code that supports the dictionary structure goes to great
trouble to modify things as growth occurs to keep access efficient.

regards
--
Steve Holden                                  http://www.holdenweb.com/
Python Web Programming                 http://pydish.holdenweb.com/pwp/
Did you miss PyCon DC 2003?            Would you come to PyCOn DC 2004?







More information about the Python-list mailing list