Why does not serialize each AmpBox separately?<br><br><div class="gmail_quote">On Thu, Apr 1, 2010 at 12:45 AM,  <span dir="ltr">&lt;<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On 03:54 pm, <a href="mailto:vlad.shevchenko@gmail.com">vlad.shevchenko@gmail.com</a> wrote:<br>

&gt;Hi all!<br>
&gt;<br>
&gt;    Stuck with AmpList again :( Im trying to send/retrieve data much<br>
&gt;larger<br>
&gt;then 64K and choose AmpList cause it &quot;Convert a list of dictionaries<br>
&gt;into a<br>
&gt;list of AMP boxes&quot;.<br>
&gt;<br>
&gt;My original data looks like a long list of dicts [ {1}, {2}, ..., {x}<br>
&gt;].<br>
&gt;I convert it to [<br>
&gt;    {&#39;data&#39;: &#39;json encoded 1,2 dicts&#39;},<br>
&gt;    {&#39;data&#39;: &#39;json encoded 3,4 dicts}&#39;,<br>
&gt;    ...<br>
&gt;] hoping EACH element in converted list will be converted to AmpBox and<br>
&gt;retriever on wire.<br>
&gt;<br>
&gt;However, still got TooLong exception on AmpBox.serialize(). AmpBox<br>
&gt;trying to<br>
&gt;serialize all my converted list but not each dict in it separately.<br>
&gt;<br>
&gt;Does this behavior ok, or this is a bug?<br>
<br>
</div></div>When you use an AmpList, the value is still serialized as a single key&#39;s<br>
value string, so the 64k limit still applies, even if it has sub-<br>
structures of its own, none of which exceed the limit.<br>
<br>
At the Twisted sprint hosted by Flumotion last weekend, some people were<br>
working on adding real streaming support to AMP.  I think most of the<br>
progress made was in understanding how the implementation should work,<br>
though.<br>
<br>
The associated ticket is #2529.<br>
&gt;<br>
&gt;--<br>
&gt;WBR, Vlad<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">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>WBR, Vlad Shevchenko<br><br>