Cache the last 3 rounds of admin logs in memory
Reduces send logs time from 2/10/45 seconds to 2 milliseconds Not thread safe Removes LogRecord
This commit is contained in:
@@ -33,13 +33,13 @@ public static class AdminLogsEuiMsg
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class NewLogs : EuiMessageBase
|
||||
{
|
||||
public NewLogs(SharedAdminLog[] logs, bool replace)
|
||||
public NewLogs(List<SharedAdminLog> logs, bool replace)
|
||||
{
|
||||
Logs = logs;
|
||||
Replace = replace;
|
||||
}
|
||||
|
||||
public SharedAdminLog[] Logs { get; set; }
|
||||
public List<SharedAdminLog> Logs { get; set; }
|
||||
public bool Replace { get; set; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user