help with making my code more efficient

Chris Angelico rosuav at gmail.com
Thu Dec 20 19:38:03 EST 2012


On Fri, Dec 21, 2012 at 11:19 AM, Larry.Martell at gmail.com
<Larry.Martell at gmail.com> 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.

ChrisA



More information about the Python-list mailing list