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.
This commit is contained in:
yankejustin 2015-05-23 00:13:02 -04:00
parent 4d8a28cdcc
commit a1a49e9eec
1 changed files with 1 additions and 1 deletions

View File

@ -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 });
}
}
}