Click here to Skip to main content
15,893,814 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: High performance c# Pin
Munchies_Matt31-May-19 23:10
Munchies_Matt31-May-19 23:10 
GeneralRe: High performance c# Pin
OriginalGriff31-May-19 23:24
mveOriginalGriff31-May-19 23:24 
GeneralRe: High performance c# Pin
Rob Philpott31-May-19 23:32
Rob Philpott31-May-19 23:32 
GeneralRe: High performance c# Pin
Munchies_Matt31-May-19 23:50
Munchies_Matt31-May-19 23:50 
GeneralRe: High performance c# Pin
OriginalGriff1-Jun-19 0:00
mveOriginalGriff1-Jun-19 0:00 
GeneralRe: High performance c# Pin
jschell2-Jun-19 9:55
jschell2-Jun-19 9:55 
GeneralRe: High performance c# Pin
Kirk 103898213-Jun-19 15:25
Kirk 103898213-Jun-19 15:25 
GeneralRe: High performance c# Pin
Rob Philpott31-May-19 23:27
Rob Philpott31-May-19 23:27 
I did a little experiment a while ago - calculating prime numbers in C++ and a handcrafted assembly version, same algorithm obviously. The C++ one ran quicker, never found out why. CPUs are so damn complicated these days. In the glory days you could look at your instruction and know how many clock cycles it took. I think the on chip caches change all that.

In my assembly days you'd get everything into registers and keep it there as long as possible. Perhaps these days the cache is good enough. Reluctantly I concede it's best left to the compiler.

The main thing in the C#/C++ for me though is that the C++ you see is so damn cryptic. I don't think it needs to be, but usually just is. Maybe its the mindset.
Regards,
Rob Philpott.

GeneralRe: High performance c# Pin
Gerardo Orozco3-Jun-19 4:37
Gerardo Orozco3-Jun-19 4:37 
GeneralRe: High performance c# Pin
lopatir1-Jun-19 4:33
lopatir1-Jun-19 4:33 
GeneralRe: High performance c# Pin
jschell2-Jun-19 9:58
jschell2-Jun-19 9:58 
GeneralRe: High performance c# Pin
dandy721-Jun-19 5:03
dandy721-Jun-19 5:03 
GeneralRe: High performance c# Pin
Munchies_Matt31-May-19 23:09
Munchies_Matt31-May-19 23:09 
GeneralRe: High performance c# Pin
Rob Philpott31-May-19 23:17
Rob Philpott31-May-19 23:17 
GeneralRe: High performance c# Pin
Munchies_Matt31-May-19 23:46
Munchies_Matt31-May-19 23:46 
GeneralRe: Totally unrelated to C# but... Pin
Member 143310761-Jun-19 2:39
Member 143310761-Jun-19 2:39 
GeneralRe: Totally unrelated to C# but... Pin
Richard MacCutchan1-Jun-19 4:19
mveRichard MacCutchan1-Jun-19 4:19 
GeneralRe: Totally unrelated to C# but... Pin
OriginalGriff1-Jun-19 4:29
mveOriginalGriff1-Jun-19 4:29 
GeneralRe: Totally unrelated to C# but... Pin
RickZeeland1-Jun-19 9:26
mveRickZeeland1-Jun-19 9:26 
GeneralRe: Totally unrelated to C# but... Pin
Mycroft Holmes1-Jun-19 13:54
professionalMycroft Holmes1-Jun-19 13:54 
GeneralRe: Totally unrelated to C# but... Pin
James Lonero5-Jun-19 11:29
James Lonero5-Jun-19 11:29 
GeneralRe: High performance c# Pin
GuyThiebaut1-Jun-19 5:25
professionalGuyThiebaut1-Jun-19 5:25 
GeneralRe: High performance c# Pin
harold aptroot1-Jun-19 7:14
harold aptroot1-Jun-19 7:14 
GeneralRe: High performance c# Pin
Pete O'Hanlon1-Jun-19 7:15
mvePete O'Hanlon1-Jun-19 7:15 
GeneralRe: High performance c# Pin
Dean Roddey1-Jun-19 10:58
Dean Roddey1-Jun-19 10:58 

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.