When opening a log with many parts (e.g. LogFiles\LogsAgent\APM\SolarWinds.APM.Probes[xxxxx].log) all the parts are loaded for the 'Open another log part' icon.
For around 400 items this could take about 6 seconds.
Instead of tampering with the calculation of what belongs to "AllLogPartsFileNames", this PR speeds up the loading time.
The most expensive operation was adding the ToolStripItem one by one. Now they are being added in one batch, which speeds the loading of the logs dramatically.
When opening a log with many parts (e.g. LogFiles\LogsAgent\APM\SolarWinds.APM.Probes[xxxxx].log) all the parts are loaded for the 'Open another log part' icon. For around 400 items this could take about 6 seconds. Instead of tampering with the calculation of what belongs to "AllLogPartsFileNames", this PR speeds up the loading time.
The most expensive operation was adding the ToolStripItem one by one. Now they are being added in one batch, which speeds the loading of the logs dramatically.