Message210752
_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. |
|
Date |
User |
Action |
Args |
2014-02-09 12:16:52 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, vstinner, neologix, python-dev, sbt, Irvin.Probst |
2014-02-09 12:16:52 | serhiy.storchaka | set | messageid: <1391948212.48.0.896377002679.issue20540@psf.upfronthosting.co.za> |
2014-02-09 12:16:52 | serhiy.storchaka | link | issue20540 messages |
2014-02-09 12:16:52 | serhiy.storchaka | create | |
|