✅ I'm looking for performance and load testing data on ConfigureAwait(false)
I cannot find any proper performance and load testing data on ConfigureAwait(false) for .NET 8 API's and azure functions. I want this info in order to make educated decision on using it.
24 Replies
@Morridis do you know what CA(false) does?
It discards the active synchronization context for that await.
Assuming by APIs you mean asp.net, then it doesn’t do anything because asp.net does not install a synchronization context.
Dunno about Azure Functions.
SCs show up in places like GUI code, where it can be quite useful to remain on the UI thread after an await.
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
If you have no further questions, please use /close to mark the forum thread as answered
Okay, Im back
Thanks, for the context. Than I will set rule severity for CA(false) to none.
Thanks for closing post
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
I understand, I just stumbled upon this such rule in otherwise great looking .NET analyzer Meziantou.Analyzer and I'm assumed Im just don't know something important.
Currently I use those:
IDisposableAnalyzers
StyleCop.Analyzers
the ones that SonarQube use when scan
Blacklisted for reason other than obsolete:
EcoCode
You got me again I guess
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
I'm strive to write less bugged code
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
For those I have step with OWASP analyzer
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
If you mean security
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
If you mean mess with unneeded imports, I have no way to do it as for now
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
Completely agree
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
But those analyzers help with dumb erros
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
We all do dumb errors
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
I disable those
I agree but I still see value in those when I connect them to pipeline and let pipeline leave comments in PR's
So if disposed undisposed it leaves comment in PR
And I don't have to watch out for those in PR's
It's so much easier when you don't have to constantly ask people disposed disposables correctly, or propagate cancellation tokens
Or sumilar stuff
Makes my work way less repetitive
Each time I see someone did some simple mistake I prefer to enable related rule and make bot comment PR on those
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
:aaaa: