Click here to Skip to main content
12,692,112 members (26,026 online)

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: Beating the compiler Pin
irneb18-Jun-13 0:12
memberirneb18-Jun-13 0:12 
GeneralRe: Beating the compiler Pin
jschell14-Jun-13 13:05
memberjschell14-Jun-13 13:05 
GeneralRe: Beating the compiler Pin
harold aptroot14-Jun-13 13:22
memberharold aptroot14-Jun-13 13:22 
GeneralRe: Beating the compiler Pin
Cornelius Henning14-Jun-13 15:08
memberCornelius Henning14-Jun-13 15:08 
GeneralRe: Beating the compiler Pin
ahmed zahmed16-Jun-13 7:45
memberahmed zahmed16-Jun-13 7:45 
GeneralRe: Beating the compiler Pin
harold aptroot16-Jun-13 8:41
memberharold aptroot16-Jun-13 8:41 
GeneralRe: Beating the compiler Pin
Kirk Wood17-Jun-13 6:53
memberKirk Wood17-Jun-13 6:53 
GeneralRe: Beating the compiler Pin
irneb18-Jun-13 0:11
memberirneb18-Jun-13 0:11 
Kirk Wood wrote:
I personally have never believed that one "can't beat the compiler."

With you on that. The compiler usually optimizes the best for any general case. Seldom would it optimize for a specific case.

In this scenario it might be that optimizing for 5's divisibility check could be done faster than the compiler's more generalized method. Or it might be a situation of some compilers using that trick about unequal devisors, but not others. You can't just assume the compiler will optimize to the best possible efficiency.

I think the point about this is to go with a middle ground approach: Don't always try to out-perform the compiler, 99% of the time you're wasting effort. But know a bit of what the compiler does, so you can more easily pick-up what might be of use to look further.
GeneralStuck in a deadlock situation. Non technical question related to asp. Pin
cluelessentity14-Jun-13 9:15
membercluelessentity14-Jun-13 9:15 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. PinPopular
jesarg14-Jun-13 9:29
memberjesarg14-Jun-13 9:29 
AnswerRe: Stuck in a deadlock situation. Non technical question related to asp. Pin
Maximilien14-Jun-13 9:33
memberMaximilien14-Jun-13 9:33 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pin
Steve Maier14-Jun-13 9:54
memberSteve Maier14-Jun-13 9:54 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pin
Norm .droid14-Jun-13 10:05
professionalNorm .droid14-Jun-13 10:05 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pin
Ron Beyer14-Jun-13 10:27
professionalRon Beyer14-Jun-13 10:27 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pin
jesarg14-Jun-13 11:39
memberjesarg14-Jun-13 11:39 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pin
Ennis Ray Lynch, Jr.14-Jun-13 11:29
memberEnnis Ray Lynch, Jr.14-Jun-13 11:29 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pin
wizardzz14-Jun-13 11:32
memberwizardzz14-Jun-13 11:32 
GeneralEye Licking Pin
MehGerbil14-Jun-13 7:50
memberMehGerbil14-Jun-13 7:50 
GeneralRe: Eye Licking Pin
jeron114-Jun-13 8:10
memberjeron114-Jun-13 8:10 
GeneralRe: Eye Licking Pin
Vark11114-Jun-13 8:17
memberVark11114-Jun-13 8:17 
GeneralRe: Eye Licking Pin
jeron114-Jun-13 8:20
memberjeron114-Jun-13 8:20 
GeneralRe: Eye Licking Pin
Bassam Abdul-Baki14-Jun-13 8:37
professionalBassam Abdul-Baki14-Jun-13 8:37 
GeneralRe: Eye Licking Pin
AspDotNetDev14-Jun-13 8:44
protectorAspDotNetDev14-Jun-13 8:44 
GeneralRe: Eye Licking Pin
Richard Deeming14-Jun-13 8:53
professionalRichard Deeming14-Jun-13 8:53 
GeneralRe: Eye Licking Pin
jeron114-Jun-13 8:57
memberjeron114-Jun-13 8:57 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 18 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid