C
C#3w ago
Morridis

✅ 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
jcotton42
jcotton423w ago
@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
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX3w ago
If you have no further questions, please use /close to mark the forum thread as answered
Morridis
Morridis3w ago
Okay, Im back Thanks, for the context. Than I will set rule severity for CA(false) to none. Thanks for closing post
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Morridis
Morridis3w ago
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
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Morridis
Morridis3w ago
I'm strive to write less bugged code
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Morridis
Morridis3w ago
For those I have step with OWASP analyzer
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Morridis
Morridis3w ago
If you mean security
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Morridis
Morridis3w ago
If you mean mess with unneeded imports, I have no way to do it as for now
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Morridis
Morridis3w ago
Completely agree
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Morridis
Morridis3w ago
But those analyzers help with dumb erros
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Morridis
Morridis3w ago
We all do dumb errors
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Morridis
Morridis3w ago
I disable those
<Rule Id="SA0001" Action="None" />
<Rule Id="SA1000" Action="None" />
<Rule Id="SA1008" Action="None" />
<Rule Id="SA1009" Action="None" />
<Rule Id="SA1010" Action="None" />
<Rule Id="SA1011" Action="None" />
<Rule Id="SA1101" Action="None" />
<Rule Id="SA1111" Action="None" />
<Rule Id="SA1201" Action="None" />
<Rule Id="SA1309" Action="None" />
<Rule Id="SA1633" Action="None" />
<Rule Id="SA1124" Action="None" />
<Rule Id="SA1015" Action="None" />
<Rule Id="SA1211" Action="None" />
<Rule Id="SA1516" Action="None" />
<Rule Id="SA1001" Action="None" />
<Rule Id="SA1204" Action="None" />
<Rule Id="SA1413" Action="None" />
<Rule Id="SA1501" Action="None" />
<Rule Id="SA1502" Action="None" />
<Rule Id="SA1503" Action="None" />
<Rule Id="SA1822" Action="None" />
<Rule Id="SA1024" Action="None" />
<Rule Id="SA1027" Action="None" />
<Rule Id="SA1118" Action="None" />
<Rule Id="SA1119" Action="None" />
<Rule Id="SA1208" Action="None" />
<Rule Id="SA1210" Action="None" />
<Rule Id="SA1313" Action="None" />
<!-- CA1062: Validate arguments of public methods -->
<Rule Id="CA1062" Action="None" />
<Rule Id="SA0001" Action="None" />
<Rule Id="SA1000" Action="None" />
<Rule Id="SA1008" Action="None" />
<Rule Id="SA1009" Action="None" />
<Rule Id="SA1010" Action="None" />
<Rule Id="SA1011" Action="None" />
<Rule Id="SA1101" Action="None" />
<Rule Id="SA1111" Action="None" />
<Rule Id="SA1201" Action="None" />
<Rule Id="SA1309" Action="None" />
<Rule Id="SA1633" Action="None" />
<Rule Id="SA1124" Action="None" />
<Rule Id="SA1015" Action="None" />
<Rule Id="SA1211" Action="None" />
<Rule Id="SA1516" Action="None" />
<Rule Id="SA1001" Action="None" />
<Rule Id="SA1204" Action="None" />
<Rule Id="SA1413" Action="None" />
<Rule Id="SA1501" Action="None" />
<Rule Id="SA1502" Action="None" />
<Rule Id="SA1503" Action="None" />
<Rule Id="SA1822" Action="None" />
<Rule Id="SA1024" Action="None" />
<Rule Id="SA1027" Action="None" />
<Rule Id="SA1118" Action="None" />
<Rule Id="SA1119" Action="None" />
<Rule Id="SA1208" Action="None" />
<Rule Id="SA1210" Action="None" />
<Rule Id="SA1313" Action="None" />
<!-- CA1062: Validate arguments of public methods -->
<Rule Id="CA1062" Action="None" />
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
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Morridis
Morridis3w ago
:aaaa:
No description
Want results from more Discord servers?
Add your server