But Ted, there *are* good reasons to still optimize CPU, for example
when your batch window is shrinking or your real-time volume is
dramatically increasing.  The programmers before us didn't all
necessarily craft their code well, like a case I had recently where two
16Mb COBOL tables were being INITIALIZE'd for every record instead of
once at start of program.  IMHO, 20+ minutes of CPU time and many hours
of elapsed time down to less than 0.5 of one minute of CPU time and 5
minutes of elapsed time (why oh why is MVCL so slow?) is a reasonable
payback for the effort.

I agree that I/O is the more common bottleneck, but it isn't always the
only one.  We are not wasting time to optimize our code whenever we see
a problem, if the payback is large enough.

It's a judgment call, to be sure, but that's what we're called on to
provide to management -- our best judgment.

Peter

> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
> Behalf Of Ted MacNEIL
> Sent: Monday, September 08, 2008 8:58 PM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Re: question for C experts - strcpy vs memcpy (fwd)
> 
> >Thanks to all for your thoughts.
> >And especially to David for doing a quick test for me.
> 
> I honestly cannot believe that people are still 'optimising' CPU.
> 
> Unless you call major chunks of CPU-intensive code, you are not going
> to find enough savings to buy a beer.
> 
> I/O, even with today's faster hardware, is where you should be
> concentrating.  Especially, on non-Mainframes.

This message and any attachments are intended only for the use of the addressee 
and
may contain information that is privileged and confidential. If the reader of 
the 
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to