Make logs view performant

This commit is contained in:
Andras Schmelczer 2025-03-22 17:06:32 +00:00
parent 21075cafb3
commit 8a27987798
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
3 changed files with 51 additions and 68 deletions

View file

@ -21,7 +21,7 @@ export class LogLine {
}
export class Logger {
private static readonly MAX_MESSAGES = 10000;
private static readonly MAX_MESSAGES = 2000;
private readonly messages: LogLine[] = [];
private readonly onMessageListeners: ((message: LogLine) => void)[] = [];