Twisted doesn't enforce any, that's part of the effect of you actually writing the server, defining, enforcing, and adhering to those limits is left to the developer. Of course you have a limited amount of space in your machine, and you probably don't want to use swap, but nothing twisted is going to limit you on, it doesn't really do anything on that level of abstraction.<br>
<br>Andy Fundinger<br><br><div class="gmail_quote">On Mon, Nov 9, 2009 at 6:24 PM, <span dir="ltr"><<a href="mailto:vitaly@synapticvision.com" target="_blank">vitaly@synapticvision.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Such global variable(lets say dictionary) will have any size limit?<br>
<div><div></div><div><br>
Quoting "Andy Fundinger" <Andy@NewWorldElectric.com>:<br>
<br>
> Part of the beauty of twisted is that you don't actually need to do anything<br>
> special to achieve that, just create a global dict or other object of your<br>
> choice and access it as needed. More likely what you need to look for is a<br>
> cache expiration mechanism, I've linked in lrucache (<br>
> <a href="http://pypi.python.org/pypi/lrucache/0.2" target="_blank">http://pypi.python.org/pypi/lrucache/0.2</a>) in one case, but usually I just<br>
> write my own constraints as appropriate.<br>
><br>
> It's often misunderstood, but in twisted you are writing an actual server<br>
> rather than just some methods for servicing requests. The server will run<br>
> until stopped and all global or even local variables will remain in memory<br>
> unless deleted or dereferenced and garbage collected. Rather than doing<br>
> something special to get a persistent variable you need to do something<br>
> special when you want a non-persistent one.<br>
><br>
> -Andy<br>
><br>
> On Mon, Nov 9, 2009 at 2:28 PM, <<a href="mailto:vitaly@synapticvision.com" target="_blank">vitaly@synapticvision.com</a>> wrote:<br>
><br>
>><br>
>><br>
>> Caching the results of some particular method calls, so other server<br>
>> side methods can access those results (I'm thinking about example of<br>
>> global variable per entire server, so once imported, such variable<br>
>> content could be access).<br>
>><br>
>><br>
>><br>
>> Quoting <a href="mailto:exarkun@twistedmatrix.com" target="_blank">exarkun@twistedmatrix.com</a>:<br>
>><br>
>> > On 05:41 pm, <a href="mailto:vitaly@synapticvision.com" target="_blank">vitaly@synapticvision.com</a> wrote:<br>
>> >> hi,<br>
>> >> is there any cache mechanism for twisted? Could one point me please to<br>
>> >> that docs?<br>
>> ><br>
>> > What sort of caching are you interested in? Caching the results of<br>
>> > method calls? A caching HTTP proxy? Caching in the DNS client? The<br>
>> > total list of possibilities could run to many pages. :)<br>
>> ><br>
>> > Jean-Paul<br>
>> ><br>
>> > _______________________________________________<br>
>> > Twisted-Python mailing list<br>
>> > <a href="mailto:Twisted-Python@twistedmatrix.com" target="_blank">Twisted-Python@twistedmatrix.com</a><br>
>> > <a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
>> ><br>
>><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Twisted-Python mailing list<br>
>> <a href="mailto:Twisted-Python@twistedmatrix.com" target="_blank">Twisted-Python@twistedmatrix.com</a><br>
>> <a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Blog: <a href="http://channel3b.wordpress.com" target="_blank">http://channel3b.wordpress.com</a><br>
><br>
> Drinking good coffee makes you wise, drinking bad coffee only makes you<br>
> awake.<br>
><br>
<br>
<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com" target="_blank">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Blog: <a href="http://channel3b.wordpress.com" target="_blank">http://channel3b.wordpress.com</a><br><br>Drinking good coffee makes you wise, drinking bad coffee only makes you awake.<br>