mirror of https://github.com/quasar/Quasar.git
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:
parent
4d8a28cdcc
commit
a1a49e9eec
|
@ -40,7 +40,7 @@ namespace xServer.Forms
|
||||||
|
|
||||||
foreach (FileInfo file in iFiles)
|
foreach (FileInfo file in iFiles)
|
||||||
{
|
{
|
||||||
lstLogs.Items.Add(new ListViewItem().Text = file.Name);
|
lstLogs.Items.Add(new ListViewItem() { Text = file.Name });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue