tiny performance optimization

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2285 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 19 years ago
parent 933a9e02ab
commit 6acb6a4d8f

@ -170,11 +170,12 @@ public class GuiHandler extends Handler{
try {
int start = (reversed)?this.start+this.count-1:this.start;
for (int i = 0; i < Math.min(this.count,lineCount); i++) {
LogRecord record=null;
for (int i = 0; i < lineCount; i++) {
int ix = (reversed) ?
Math.abs((start-i)%this.buffer.length) :
(start+i)%this.buffer.length;
LogRecord record = this.buffer[ix];
record = this.buffer[ix];
logMessages.append(logFormatter.format(record));
}
return logMessages.toString();

Loading…
Cancel
Save