Scarfsail / AdvancedLogViewer

Advanced Log Viewer
64 stars 21 forks source link

Insert log-part items altogether #29

Closed 7rakir closed 1 year ago

7rakir commented 3 years ago

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.