mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-18 03:01:05 +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) {
|
public void keepLineBreakInMind(char b) {
|
||||||
lastLineBreakCharacter = b;
|
lastLineBreakCharacter = b;
|
||||||
++currentLine;
|
++currentLine;
|
||||||
|
|||||||
Reference in New Issue
Block a user