summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJon Simons <jon@jonsimons.org>2014-02-06 12:37:02 -0800
committerAndreas Schneider <asn@cryptomilk.org>2014-03-27 11:25:15 +0100
commit34ac4e42486029a75a8dc74eb328459b3cc656c0 (patch)
tree5817e70892d65e616e6799b6a5181f871aa5f0b9 /include
parent1928fb6a85c14ceed2cd63b30ce1987eba576555 (diff)
packet: elide two buffer_prepend calls into one
In packet_send2, rather than issue two separate buffer_prepend_data calls (each of which may entail realloc + memmove + memcpy), elide the prepend work into a single buffer_prepend_data: the header information is computed locally, and a single 5 byte prepend operation is now done instead of prepending 1, then 4 bytes. Reviewed-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit aa05248ca81e3bd9e949ad724d45518707446e2c) Conflicts: src/packet.c
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions