help with making my code more efficient
rosuav at gmail.com
Fri Dec 21 01:38:03 CET 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.
More information about the Python-list