def f(): return dict(a=list(range(100000)))question 1 - sure, the memory should be reclaimed eventually. You could tell the gc to collect immediately, but it operates on it's own time. Even the .NET VM will hold on to memory for longer than it should if there's nothing that needs that memory. You just call gc.collect() to have it collect immediately.
question 2 - yea, don't do that :) try 'xrange(100000)' which is more memory efficient.
def f(): a=list(range(100000)) return 'ok'Yes, the leak seems to be associated with rendering data in a view.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/_cB4Ibm5ilc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.