<div>
Thanks for the indirect heads up on this ;-)
</div>
<div></div>
<p style="color: #A0A0A8;">On Tuesday, March 20, 2012 at 8:52 AM, Aaron Westendorf wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div>I looked at the changes and in addition to those, I recommend using</div><div>the Python deque class for your buffers. I noticed a significant</div><div>improvement in performance when I switched to them in haigha.</div><div><br></div><div>cheers,</div><div>Aaron</div><div><br></div><div><br></div><div><br></div><div>On Tue, Mar 20, 2012 at 6:41 AM, Marek Majkowski <<a href="mailto:majek04@gmail.com">majek04@gmail.com</a>> wrote:</div><blockquote type="cite"><div><div>On Wed, Mar 14, 2012 at 18:59, Marek Majkowski <<a href="mailto:majek04@gmail.com">majek04@gmail.com</a>> wrote:</div><blockquote type="cite"><div><div>On Wed, Mar 14, 2012 at 18:42, Marek Majkowski <<a href="mailto:majek04@gmail.com">majek04@gmail.com</a>> wrote:</div><blockquote type="cite"><div><div>On Wed, Mar 14, 2012 at 12:31, Christos Stavrakakis</div><div><<a href="mailto:stavr.chris@gmail.com">stavr.chris@gmail.com</a>> wrote:</div><blockquote type="cite"><div><div>I am using Puka client [1] in order to send messages with guaranteed</div><div>delivery using publisher confirms.</div><div><br></div><div>Trying to send 200.000 messages I see that waiting for the confirms, takes a</div><div>lot of time.</div><div><br></div><div>To be more specific:</div><div><br></div><div> promises = []</div><div> t0 = time.time()</div><div> for i in range(0,200000):</div><div> promise = client.basic_publish(exchange='test_exchange',</div><div>routing_key='test',</div><div> body="Hello</div><div>world!")</div><div> promises.append(promise)</div></div></blockquote></div></blockquote><div><br></div><div>Right, there is a performance problem with handling pubacks. The complexity</div><div>grows with n^2 of unacked messages</div><div><br></div><div>Good news: the problem is in this line:</div><div> <a href="https://github.com/majek/puka/blob/master/puka/machine.py#L147-148">https://github.com/majek/puka/blob/master/puka/machine.py#L147-148</a></div><div><br></div><div>Bad news: I have no clue how to fix it.</div><div><br></div><div>I've rised an issue on github:</div><div> <a href="https://github.com/majek/puka/issues/12">https://github.com/majek/puka/issues/12</a></div></div></blockquote><div><br></div><div>Christos,</div><div><br></div><div>Thanks for your report and for the pull request!</div><div><br></div><div>I just uploaded puka 0.0.4 to pypi, which solves the problem.</div><div><br></div><div>Cheers,</div><div> Marek</div><div>_______________________________________________</div><div>rabbitmq-discuss mailing list</div><div><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a></div><div><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a></div></div></blockquote><div><br></div><div><br></div><div><br></div><div>-- </div><div>Aaron Westendorf</div><div>Senior Software Engineer</div><div>Agora Games</div><div>359 Broadway</div><div>Troy, NY 12180</div><div>Phone: 518.268.1000</div><div><a href="mailto:aaron@agoragames.com">aaron@agoragames.com</a></div><div><a href="http://www.agoragames.com">www.agoragames.com</a></div><div>_______________________________________________</div><div>rabbitmq-discuss mailing list</div><div><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a></div><div><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a></div></div></div></span>
</blockquote>
<div>
<br>
</div>