Resolution: Information Provided
Affects Version/s: 2.0.8
Fix Version/s: None
Environment:Windows 10 Pro 64-Bit (1709)
.NET Framework 4.5.2
Visual Studio 2015
The documentation of log4net points out that the logging of caller location information can be very slow and shouldn't be used unless the performance of the software is not affected. And until the Windows 10 Fall Creators Update this was the case.
But after the Windows update (1709) the performance with caller location information like %C %M %L is about 100 times slower than without. The following results are based on the simple Visual Studio project attached to this issue.
Results before Windows update (1709)
without %C %M %L: Logging of 1000 iterations took: 18 ms.
with %C %M %L: Logging of 1000 iterations took: 81 ms.
Results after Windows update (1709)
without %C %M %L: Logging of 1000 iterations took: 14 ms.
with %C %M %L: Logging of 1000 iterations took: 1502 ms.
I hope this issue can be fixed or a workaround offered. Thanks in advance!