On Mon, Jan 25, 2010 at 9:31 AM, Steve Howell <span dir="ltr"><<a href="mailto:showell30@yahoo.com">showell30@yahoo.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Another way of looking at it is that you would need to have 250 or so<br>
lists in memory at the same time before the extra pointer was even<br>
costing you kilobytes of memory. My consumer laptop has 3027908k of<br>
memory.<br></blockquote><div><br></div><div>Umm, I think the issue here is that some people have use-cases which are talking of number of lists whole orders of magnitude higher then you're talking about here. In your program, maybe you only count the number of lists in the hundreds, and so a few extra words wouldn't matter.</div>
<div><br></div><div>I have applications that have hundreds of thousands to millions of lists in memory-- and which have to be managed somewhat carefully to avoid the 32-bit memory allocation limit not smacking them (64-bit python isn't an option for me presently).</div>
<div><br></div><div>I've never had an algorithm which needed to pop off the top of a list that I couldn't with utter triviality simply operate in the reverse.</div><div><br></div><div>If Python's gonna get more memory hungry, I'd like to see how it benefits me in some way. I mean, Unladen Swallow is talking about boosting Python's memory need for the JIT, but I'm getting distinct performance improvements out of that. That sounds like a fair trade.</div>
<div><br></div><div>You want Python to eat up a few more of my megs that I'd rather put to use elsewhere, because... you don't want to just reverse your algorithm to treat the FIFO as a LILO?</div><div><br></div>
<div>
Sure, I can break my program up to run in separate processes and double how much data I can have at once, with some IPC overhead. And if I got something out of it, I'd be happy to! Or you can alter your algorithm. Why must I be the one to change? :)</div>
<div><br></div></div><div name="mailplane_signature">--S</div>