Use generators instead of lists for resultsets?
[email protected] Fri, 24 Jun 2005 19:50:08 +0100
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
I've noticed that PyDO treats a resultset as a list, which for a large resultset could incur quite a memory overhead. How about using generators instead? Such a change would probably be transparent to most of the rest of the code; one of the places where it wouldn't be is the type test in getSome. Hamish Lawson ----------------------------------------------------------------- University of St Andrews Webmail: http://webmail.st-andrews.ac.uk ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click