Github user remkop commented on the issue:
https://github.com/apache/logging-log4j2/pull/218
I cannot imagine any program logging one million parameters so this
benchmark is perhaps a bit academic. :-)
In a realistic program a "large" parameter array is probably more like 100
elements (and I would not like to maintain a program that has a logging
statement with 100 parameters).
Can we measure again with an extreme case of 1000 parameters?
I suspect that with an array of 1000 (or even 10,000) elements we won't see
much difference between nulling out only the first 10 or the full array, in
which case it is more robust to simply null out the whole array.
---