On Fri, Dec 21, 2012 at 11:19 AM, larry.mart...@gmail.com <larry.mart...@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 -- http://mail.python.org/mailman/listinfo/python-list