Click here to Skip to main content
15,940,173 members
Home / Discussions / C#
   

C#

 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
charlieg31-May-24 1:34
charlieg31-May-24 1:34 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
Richard Deeming31-May-24 1:44
mveRichard Deeming31-May-24 1:44 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
Maximilien31-May-24 1:56
Maximilien31-May-24 1:56 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
abmv31-May-24 2:23
professionalabmv31-May-24 2:23 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
OriginalGriff31-May-24 2:39
mveOriginalGriff31-May-24 2:39 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
PIEBALDconsult31-May-24 2:52
mvePIEBALDconsult31-May-24 2:52 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
Dave Kreskowiak31-May-24 12:39
mveDave Kreskowiak31-May-24 12:39 
GeneralRe: Need Help with Optimizing My C# Code for Better Performance Pin
trønderen8-Jun-24 5:22
trønderen8-Jun-24 5:22 
A week has passed, and your rather provocative, categorical statement hasn't succeeded in provoking a single reaction Smile | :)

I smiled when I first saw it, not sure if it was intended as a pure joke or as a serious, but provocatively phrased, statement. Nested loops should of course raise your awareness level (and so should single loop, although not necessarily as much). But some problems are by nature two- (or even multi-) dimensional, and lends themselves to nested loop implementations. The only alternative is to roll out one of the levels, requiring the iteration count to be fixed (which is not always the case). It could reduce code cash hit rate significantly, and in extreme cases ever virtual memory hit rate.

So I hope noone takes your advice as Absolute Truth. It very strongly tells you to check twice what you put into the loops, whether simple or nested. But as single loops have their place, so has nested loops (but of cause a smaller one) - even in high performance code.
Religious freedom is the freedom to say that two plus two make five.

GeneralRe: Need Help with Optimizing My C# Code for Better Performance Pin
Dave Kreskowiak8-Jun-24 6:42
mveDave Kreskowiak8-Jun-24 6:42 
GeneralRe: Need Help with Optimizing My C# Code for Better Performance Pin
trønderen9-Jun-24 3:35
trønderen9-Jun-24 3:35 
GeneralRe: Need Help with Optimizing My C# Code for Better Performance Pin
Dave Kreskowiak9-Jun-24 4:08
mveDave Kreskowiak9-Jun-24 4:08 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
Rob Philpott4-Jun-24 2:00
Rob Philpott4-Jun-24 2:00 
GeneralRe: Need Help with Optimizing My C# Code for Better Performance Pin
jochance7-Jun-24 2:28
jochance7-Jun-24 2:28 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
jschell7-Jun-24 12:41
jschell7-Jun-24 12:41 
Questionhow to get repository user list and and user group from Azure DevOps Pin
arjunmca28-May-24 21:49
arjunmca28-May-24 21:49 
AnswerRe: how to get repository user list and and user group from Azure DevOps Pin
OriginalGriff28-May-24 22:27
mveOriginalGriff28-May-24 22:27 
GeneralRe: how to get repository user list and and user group from Azure DevOps Pin
trønderen29-May-24 5:21
trønderen29-May-24 5:21 
Questiontelegram client api to download video files and/or telegram video link Pin
Tony Germanos28-May-24 6:59
Tony Germanos28-May-24 6:59 
AnswerRe: telegram client api to download video files and/or telegram video link Pin
OriginalGriff28-May-24 18:19
mveOriginalGriff28-May-24 18:19 
GeneralAD Sync Manager - a free tool to easily monitor and manage your AD to Azure AD sync Pin
TheITApprentice21-May-24 18:29
TheITApprentice21-May-24 18:29 
GeneralRe: AD Sync Manager - a free tool to easily monitor and manage your AD to Azure AD sync Pin
OriginalGriff21-May-24 18:30
mveOriginalGriff21-May-24 18:30 
QuestionHow to convert XML to text file Pin
Member 1211605220-May-24 19:37
Member 1211605220-May-24 19:37 
AnswerRe: How to convert XML to text file Pin
Richard Deeming20-May-24 21:32
mveRichard Deeming20-May-24 21:32 
AnswerRe: How to convert XML to text file Pin
trønderen21-May-24 4:43
trønderen21-May-24 4:43 
AnswerRe: How to convert XML to text file Pin
jschell21-May-24 12:27
jschell21-May-24 12:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.