mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
Add simple performance optimization
This commit is contained in:
@@ -71,6 +71,14 @@ class LineFilteredOutputStream extends OutputStream {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(byte[] b, int off, int len) throws IOException {
|
||||
if (currentLine > end) {
|
||||
return;
|
||||
}
|
||||
super.write(b, off, len);
|
||||
}
|
||||
|
||||
public void keepLineBreakInMind(char b) {
|
||||
lastLineBreakCharacter = b;
|
||||
++currentLine;
|
||||
|
||||
Reference in New Issue
Block a user