help with making my code more efficient

Chris Angelico rosuav at
Fri Dec 21 01:38:03 CET 2012

On Fri, Dec 21, 2012 at 11:19 AM, Larry.Martell at
<Larry.Martell at> wrote:
> This code works, but it takes way too long to run - e.g. when cdata has 600,000 elements (which is typical for my app) it takes 2 hours for this to run.
> Can anyone give me some suggestions on speeding this up?

It sounds like you may have enough data to want to not keep it all in
memory. Have you considered switching to a database? You could then
execute SQL queries against it.


More information about the Python-list mailing list