Uh oh!
There was an error while loading. Please reload this page.
Use ConcurrentDictionary For Improving GetEnumFromDisplayName - #1809
Conversation
Darrel (darrelmiller)
commented
Sep 5, 2024
Is this change for perf reasons? Do you have any benchmarks for what the perf difference is between these solutions? |
Mahdigln
commented
Sep 11, 2024
I ran the benchmark with each method executed 1,000,000 times to simulate a high-usage scenario. This large number of iterations helps highlight the performance difference between the two approaches. Here's how the times break down: This shows the significant advantage of using caching when dealing with repeated reflection operations |
Darrel (darrelmiller)
commented
Oct 4, 2024
That seems like a pretty significant improvement. Thank you for the work. |
Darrel (darrelmiller)
commented
Oct 4, 2024
Mahdigln
commented
Oct 4, 2024
Glad it was helpful! Hope to contribute more in the future. |
No description provided.