Does using Member Renamer have any performance impact because it will be doing it via Reflection: https://github.com/lunet-io/scriban/blob/master/doc/runtime.md#member-renamer
Does Member Renamer have any impact to performance
160 views Asked by iMatoria At
1
Scriban with or without Renamer is using reflection to get the public properties and methods.
Renamer is small step in its processing.
Have a look to the Renamer in the source code.
I did a benchmark using the smart BenchmarkDotNet
for the following template
The size of data:
List<Product> Products
is 500The result of benchmark:
As you see the difference (in case of Renamer) is about: 0.055 ms
There is approximately no difference
Conclusion: No effect in case of Renamer
Note: The numbers in this benchmark may be different in other machines based on CPU/memory/...etc, but the conclusion is the same.