-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.1
-
Component/s: None
-
None
LookupSerializer is called millions of times under heavy load. Currently it uses an exclusive lock to provide thread safety. Since after a short initialization period the access pattern becomes almost exclusively read-only it would be very beneficial to switch from an exclusive lock to a shared ReaderWriterLockSlim which would allow parallel readers.
This is motivated by an actual test scenario that showed lock contention really was happening.