I wrote a validation function that is run by a BackgroundWorker in a WPF application. It formerly ran on the UI thread, but it's a little intense and was freezing the UI. As a result, I had to wrap lots of lines om the validation function with dispatcher calls, so many that I'm worried about a performance hit. I count 20 dispatcher calls in 53 SLOC. For the most part they're pretty simple calls--usually just lambdas that set a property.
Is this going to bite me later?
Thanks!