This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Irvin.Probst, neologix, pitrou, python-dev, sbt, serhiy.storchaka, vstinner
Date 2014-02-09.12:16:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391948212.48.0.896377002679.issue20540@psf.upfronthosting.co.za>
In-reply-to
Content
_send_bytes() now looks a little complicated.

There are no need in separate branches for n==0. header + buf where buf is b'' is fast (it is not slower than additional check n > 0). So this microoptimization is not needed.

The chunks list is not needed, we can just call self._send(). This will get rid of small overhead of creating and iterating a list.
History
Date User Action Args
2014-02-09 12:16:52serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, vstinner, neologix, python-dev, sbt, Irvin.Probst
2014-02-09 12:16:52serhiy.storchakasetmessageid: <1391948212.48.0.896377002679.issue20540@psf.upfronthosting.co.za>
2014-02-09 12:16:52serhiy.storchakalinkissue20540 messages
2014-02-09 12:16:52serhiy.storchakacreate