Community
Participate
Working Groups
Follow-up for Bug 566685 but for SafeFileOutputStream which should use the same optimization as SafeChunkyOutputStream.
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.resources/+/169344
I'm not sure that the same optimization is an optimization here. Do you have some benchmark indicating it?
(In reply to Karsten Thoms from comment #2) > I'm not sure that the same optimization is an optimization here. Do you have > some benchmark indicating it? Same for bug 566986. Just patching some low level code in a hope it could be faster is not the right way to work. Tests are must have. See bug 566685 comment 4 for an example.
Jeremy, can you help here?
I've looked at the class SafeFileOutputStream and I agree with Karsten T. and Andrey L.'s comments. The application of the same optimization isn't applicable here. There is a BufferedOutputStream used to override the FilterOutputStream.write(byte[], int, int) method.
Thanks, Jeremy for the check.