Optimization of thread-safety.

May 27, 2010 at 9:33 PM
Edited May 27, 2010 at 9:51 PM
Hello. As far as I'm concerned, all thread-safe code in ValidationCatalog should be rewritten using ReaderWriterLockSlim instead of simple lock. Also, copy-on-write pattern(http://davybrion.com/blog/2010/03/using-copy-on-write-in-multithreaded-code-to-reduce-locking-overhead/) should be used in Validates(Specification) to reduce locking overhead. Thanks for the efforts.