Click here to Skip to main content
15,905,912 members

Survey Results

Do you optimise your code?   [Edit]

Survey period: 29 Nov 2004 to 5 Dec 2004

Do you optimise your code for speed, size or resource use? Or do you just let it all hang out?

OptionVotes% 
Yes, all the time27219.22
Yes, whenever I have the time or resources42930.32
Only when it's critical I do so45131.87
Occasionally1319.26
Never: I have no time or resources332.33
Never. What's the point?211.48
Never. I've never learned how.785.51



 
General-O2 Pin
Saleh Dindar4-Dec-04 20:38
Saleh Dindar4-Dec-04 20:38 
GeneralBut the compiler CANNOT optimize everything! (waS: Re: -O2) Pin
James R. Twine5-Dec-04 7:40
James R. Twine5-Dec-04 7:40 
GeneralRe: But the compiler CANNOT optimize everything! (waS: Re: -O2) Pin
Saleh Dindar5-Dec-04 20:52
Saleh Dindar5-Dec-04 20:52 
GeneralOptimise ur Code Now!! Pin
Optimum Speed4-Dec-04 1:16
sussOptimum Speed4-Dec-04 1:16 
GeneralNAAAAAAAAARRRRRRRFFFFFF Pin
wolfibender3-Dec-04 11:25
wolfibender3-Dec-04 11:25 
GeneralRe: NAAAAAAAAARRRRRRRFFFFFF Pin
gaamoa4-Dec-04 9:49
gaamoa4-Dec-04 9:49 
GeneralRe: NAAAAAAAAARRRRRRRFFFFFF Pin
.dan.g.5-Dec-04 12:56
professional.dan.g.5-Dec-04 12:56 
GeneralI can't set my asp.net application on the server Pin
Mahmoud Tahoon3-Dec-04 2:06
Mahmoud Tahoon3-Dec-04 2:06 
GeneralI've seen programming questions in the lounge.... but this is ridiculous! Pin
Luis Alonso Ramos5-Dec-04 11:13
Luis Alonso Ramos5-Dec-04 11:13 
GeneralMoore law is the greatest optimizer Pin
netpaul2-Dec-04 19:15
netpaul2-Dec-04 19:15 
GeneralRe: Moore law is the greatest optimizer Pin
James R. Twine5-Dec-04 7:47
James R. Twine5-Dec-04 7:47 
GeneralMaximize speed! Pin
John R. Shaw2-Dec-04 18:00
John R. Shaw2-Dec-04 18:00 
GeneralRe: Maximize speed! Pin
Michael Dunn4-Dec-04 18:22
sitebuilderMichael Dunn4-Dec-04 18:22 
GeneralIt depends... Pin
J. Dunlap1-Dec-04 16:46
J. Dunlap1-Dec-04 16:46 
GeneralOnly with things the compiler can't help with... Pin
Michael Dunn1-Dec-04 13:23
sitebuilderMichael Dunn1-Dec-04 13:23 
GeneralRe: Only with things the compiler can't help with... Pin
Jeff J1-Dec-04 21:16
Jeff J1-Dec-04 21:16 
GeneralCode optimization is not only a compiler thing... Pin
DiWa3-Dec-04 22:36
DiWa3-Dec-04 22:36 
Sure, compilers are smart and processors are fast. But double-buffering is not a way of code-optimization, but user-interface optimization, because it leads to flicker-free drawing.
On the other hand, if you are i.e. dealing with bitmaps on a pixel level, it makes a lot of sense to directy access the bitmap bits instead of the awesome GetPixel / SetPixel GUI routines.

So code-optimization should also be seen as algorithm-optimization to make clear that it is not only the machine instructions but also the way you're dealing with your data.

The bean-counter example will not lead to any noticable difference in performance. With today (desktop-)processors and PCs, some thousands or millons of instructions must be saved to make a difference.

to make a point:
code optimization means to handle your data better, which is something no compiler can do for me. You can always write bad (and slow) code, or optimize it with better, smarter algorithms.

dirk
GeneralQuality Pin
KarstenK30-Nov-04 22:46
mveKarstenK30-Nov-04 22:46 
GeneralCode efficiency and readibility Pin
De Nardis Andrea30-Nov-04 22:03
De Nardis Andrea30-Nov-04 22:03 
GeneralStack Overflow Error! Pin
Hambik30-Nov-04 3:43
Hambik30-Nov-04 3:43 
GeneralRe: Stack Overflow Error! Pin
Jörgen Sigvardsson30-Nov-04 10:56
Jörgen Sigvardsson30-Nov-04 10:56 
GeneralRe: Stack Overflow Error! Pin
Hambik30-Nov-04 23:49
Hambik30-Nov-04 23:49 
GeneralRe: Stack Overflow Error! Pin
avtar30-Nov-04 18:55
avtar30-Nov-04 18:55 
GeneralRe: Stack Overflow Error! Pin
Hambik30-Nov-04 23:47
Hambik30-Nov-04 23:47 
GeneralRe: Stack Overflow Error! Pin
HammerBlade1-Dec-04 1:32
HammerBlade1-Dec-04 1:32 

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.