]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - misc.c
Rework bufchain code to allow for variable-sized granules.
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 11 Aug 2012 09:10:31 +0000 (09:10 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 11 Aug 2012 09:10:31 +0000 (09:10 +0000)
commitb599e77ada8399459b14c710ed1db1e48456c868
tree646eb368c504380ca91fec98da6bd0935a89f834
parent37ea0f45414fe01250de8485ed9f4c390057861c
Rework bufchain code to allow for variable-sized granules.
bufchain_add() now allocates at most one new granule.  Granules still
have a minimum size, so small adds still get coalesced.

The main practical consequence of this is that PSCP and PSFTP now
generate 4K SSH packets rather than 512-byte ones.  Also, the compiled
code (on my Ubuntu box) is fractionally smaller.

[originally from svn r9602]
misc.c