From a1a49e9eec2feb045c6f59c960c4271b16255961 Mon Sep 17 00:00:00 2001 From: yankejustin Date: Sat, 23 May 2015 00:13:02 -0400 Subject: [PATCH] Increase in keylogger form constructor Now we actually use the ListViewItem object we create on every iteration instead of creating one and only passing the string property value. ~38% speed increase each iteration on DEBUG and RELEASE configurations. --- Server/Forms/FrmKeylogger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Forms/FrmKeylogger.cs b/Server/Forms/FrmKeylogger.cs index 4d93f8a1..325f4a5d 100644 --- a/Server/Forms/FrmKeylogger.cs +++ b/Server/Forms/FrmKeylogger.cs @@ -40,7 +40,7 @@ namespace xServer.Forms foreach (FileInfo file in iFiles) { - lstLogs.Items.Add(new ListViewItem().Text = file.Name); + lstLogs.Items.Add(new ListViewItem() { Text = file.Name }); } } }