Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy.
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 and please don't post ads.

Technical discussions are welcome, but if you need specific help please ask your question here.


 
GeneralRe: Beating the compiler PinmemberA. A. J. Rodriguez17-Jun-13 4:33 
GeneralRe: Beating the compiler Pinmemberahmed zahmed16-Jun-13 7:18 
GeneralRe: Beating the compiler PinmemberBillWoodruff16-Jun-13 16:21 
GeneralRe: Beating the compiler PinmemberJeremy Hutchinson17-Jun-13 3:19 
GeneralRe: Beating the compiler PinprofessionalRon Beyer17-Jun-13 6:04 
GeneralRe: Beating the compiler PinmemberJeremy Hutchinson17-Jun-13 6:13 
GeneralRe: Beating the compiler Pinmemberirneb18-Jun-13 0:12 
GeneralRe: Beating the compiler Pinmemberjschell14-Jun-13 13:05 
GeneralRe: Beating the compiler Pinmemberharold aptroot14-Jun-13 13:22 
GeneralRe: Beating the compiler PinmemberCornelius Henning14-Jun-13 15:08 
GeneralRe: Beating the compiler Pinmemberahmed zahmed16-Jun-13 7:45 
GeneralRe: Beating the compiler Pinmemberharold aptroot16-Jun-13 8:41 
GeneralRe: Beating the compiler PinmemberKirk Wood17-Jun-13 6:53 
GeneralRe: Beating the compiler Pinmemberirneb18-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. Pinmembercluelessentity14-Jun-13 9:15 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pinmemberjesarg14-Jun-13 9:29 
AnswerRe: Stuck in a deadlock situation. Non technical question related to asp. PinmemberMaximilien14-Jun-13 9:33 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. PinmemberSteve Maier14-Jun-13 9:54 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. PinprofessionalNorm .droid14-Jun-13 10:05 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. PinprofessionalRon Beyer14-Jun-13 10:27 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pinmemberjesarg14-Jun-13 11:39 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. PinmemberEnnis Ray Lynch, Jr.14-Jun-13 11:29 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pinmemberwizardzz14-Jun-13 11:32 
GeneralEye Licking PinmemberMehGerbil14-Jun-13 7:50 
GeneralRe: Eye Licking Pinmemberjeron114-Jun-13 8:10 
GeneralRe: Eye Licking PinmemberVark11114-Jun-13 8:17 
GeneralRe: Eye Licking Pinmemberjeron114-Jun-13 8:20 
GeneralRe: Eye Licking PinprofessionalBassam Abdul-Baki14-Jun-13 8:37 
GeneralRe: Eye Licking PinprotectorAspDotNetDev14-Jun-13 8:44 
GeneralRe: Eye Licking PinprofessionalRichard Deeming14-Jun-13 8:53 
GeneralRe: Eye Licking Pinmemberjeron114-Jun-13 8:57 
GeneralRe: Eye Licking PinprotectorAspDotNetDev14-Jun-13 9:15 
GeneralRe: Eye Licking Pinmemberjeron114-Jun-13 8:47 
GeneralRe: Eye Licking PinprofessionalBassam Abdul-Baki14-Jun-13 8:59 
GeneralRe: Eye Licking Pinmemberjeron114-Jun-13 9:03 
GeneralRe: Eye Licking PinprofessionalBassam Abdul-Baki14-Jun-13 9:30 
GeneralRe: Eye Licking Pinmemberjeron114-Jun-13 10:18 
GeneralRe: Eye Licking PinprotectorOriginalGriff14-Jun-13 9:01 
GeneralRe: Eye Licking Pinmemberlewax0014-Jun-13 9:24 
GeneralRe: Eye Licking PinprofessionalMatthew Faithfull14-Jun-13 10:44 
GeneralRe: Eye Licking PinprofessionalSoMad14-Jun-13 11:24 
GeneralRe: Eye Licking PinmemberDirk Higbee14-Jun-13 11:50 
GeneralRe: Eye Licking PinmemberClifford Nelson14-Jun-13 13:51 
GeneralRe: Eye Licking PinprofessionalSoMad14-Jun-13 14:22 
GeneralRe: Eye Licking PinmemberClifford Nelson14-Jun-13 17:40 
GeneralUS Navy to stop shouting PinmemberChris Quinn14-Jun-13 5:16 
GeneralRe: US Navy to stop shouting PinprofessionalJohnny J.14-Jun-13 5:33 
GeneralRe: US Navy to stop shouting PinmemberGary Wheeler14-Jun-13 5:45 
GeneralRe: US Navy to stop shouting PinprofessionalJohnny J.14-Jun-13 5:47 
GeneralRe: US Navy to stop shouting PinmemberMehGerbil14-Jun-13 6:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web04 | 2.8.150129.1 | Last Updated 31 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid