Hi, Evgeny, Great work, IMHO.
From: Evgeny Kotkov [mailto:evgeny.kot...@visualsvn.com] > This patch series reduces the amount of syscalls in such situations by > performing a single WriteFile() call without any buffering, if possible. > If some data is already buffered, then the buffer is first filled, flushed > and the remaining part of the data is written with a single WriteFile(). Why first refilling the buffer, instead of flushing the partial buffer content, and then the original data to write? From my first glance, it looks like the number of syscalls should be the same, and we could skip the mem copy? Mit freundlichen Grüßen Markus Schaber CODESYS® Eine Marke der 3S-Smart Software Solutions GmbH Inspiring Automation Solutions 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.scha...@codesys.com | Web: http://www.codesys.com | CODESYS store: http://store.codesys.com CODESYS forum: http://forum.codesys.com Geschäftsführer: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Handelsregister: Kempten HRB 6186 | USt-IDNr.: DE 167014915 Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.