Click here to Skip to main content
15,902,275 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: goto statement Pin
vl212-Nov-13 1:45
vl212-Nov-13 1:45 
GeneralRe: goto statement Pin
werinus12-Nov-13 2:36
werinus12-Nov-13 2:36 
GeneralRe: goto statement Pin
jschell12-Nov-13 9:44
jschell12-Nov-13 9:44 
GeneralRe: goto statement Pin
Bill_Hallahan12-Nov-13 13:04
Bill_Hallahan12-Nov-13 13:04 
GeneralRe: goto statement Pin
jschell13-Nov-13 9:30
jschell13-Nov-13 9:30 
GeneralRe: goto statement Pin
Bill_Hallahan13-Nov-13 17:23
Bill_Hallahan13-Nov-13 17:23 
GeneralRe: goto statement Pin
jschell14-Nov-13 7:50
jschell14-Nov-13 7:50 
GeneralRe: goto statement Pin
Bill_Hallahan14-Nov-13 14:02
Bill_Hallahan14-Nov-13 14:02 
jsachell wrote:
"I have not doubt that optimization can make applications significantly faster. However that is different than saying that you managed this only after profiling."

I usually profiled the system, but not always. Sometimes I just timed how long it took to do something. These times, I did know what the bottleneck would be without profiling because it was obvious, even to the casual observer, even without experience and history, both of which I have in this area.

For just one such case, in an embedded processor, I was getting data from an Analog to Digital Converter (ADC) using DMA, and then doing millions of calculations per second on the data, and then writing the data to an in-memory buffer, and then the processed data would be written to a Digital To Analog Converter (DAC). I knew that the majority of the time would be spent doing the algorithm that does millions of calculations per second, because the input and output buffering would be many orders of magnitude faster.

Sometimes in simple systems, it is obvious what needs to be optimized even without profiling.

I do agree with you, in large systems, profiling is needed. Very simple systems can be understood almost completely, particularly when someone is repeatedly implementing similar simple systems.
GeneralRe: goto statement Pin
jschell12-Nov-13 9:46
jschell12-Nov-13 9:46 
GeneralRe: goto statement Pin
Bill_Hallahan12-Nov-13 13:25
Bill_Hallahan12-Nov-13 13:25 
GeneralRe: goto statement Pin
jschell13-Nov-13 9:49
jschell13-Nov-13 9:49 
GeneralRe: goto statement Pin
Stefan_Lang12-Nov-13 20:50
Stefan_Lang12-Nov-13 20:50 
GeneralRe: goto statement Pin
Bill_Hallahan12-Nov-13 12:32
Bill_Hallahan12-Nov-13 12:32 
GeneralRe: goto statement Pin
Stefan_Lang12-Nov-13 21:34
Stefan_Lang12-Nov-13 21:34 
GeneralRe: goto statement Pin
Bill_Hallahan13-Nov-13 7:16
Bill_Hallahan13-Nov-13 7:16 
GeneralRe: goto statement Pin
_Maxxx_10-Nov-13 14:35
professional_Maxxx_10-Nov-13 14:35 
GeneralRe: goto statement Pin
Tarek Elqusi10-Nov-13 18:46
professionalTarek Elqusi10-Nov-13 18:46 
GeneralRe: goto statement Pin
Mark_Wallace10-Nov-13 20:47
Mark_Wallace10-Nov-13 20:47 
GeneralRe: goto statement Pin
Mark H210-Nov-13 21:56
Mark H210-Nov-13 21:56 
GeneralRe: goto statement Pin
Stefan_Lang10-Nov-13 23:24
Stefan_Lang10-Nov-13 23:24 
GeneralRe: goto statement Pin
vl211-Nov-13 7:49
vl211-Nov-13 7:49 
GeneralRe: goto statement Pin
jaybus5610-Nov-13 22:11
jaybus5610-Nov-13 22:11 
GeneralRe: goto statement Pin
Stefan_Lang10-Nov-13 23:13
Stefan_Lang10-Nov-13 23:13 
GeneralRe: goto statement Pin
vl211-Nov-13 7:46
vl211-Nov-13 7:46 
GeneralRe: goto statement Pin
Stefan_Lang11-Nov-13 20:30
Stefan_Lang11-Nov-13 20:30 

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.