WINGs: optimisations to 'WMReadPropListFromPipe'
commitaf059d408beb9b4213439424e35575d065183108
authorChristophe CURIS <christophe.curis@free.fr>
Fri, 4 Jul 2014 21:28:38 +0000 (4 23:28 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 6 Jul 2014 00:07:55 +0000 (6 01:07 +0100)
tree83687d9b705bbd051c6f8db5d84264ea576e3d6e
parent654dcfeb281d7ba91752df2a360d596761046e30
WINGs: optimisations to 'WMReadPropListFromPipe'

The function did spend its time re-copying data and searching the
end of the read buffer, which is not really efficient.

The new code reads directly from file to the end of previous data,
avoiding unneccesary duplication, and keeps track of the end of
data to avoid searching it for next read.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WINGs/proplist.c