Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: donald tees <donaldtees@xxxxxxxxxxxxx>
- Date: Wed, 19 Sep 2007 19:32:32 -0400
Howard Brazee wrote:
On Wed, 19 Sep 2007 10:59:14 -0400, donald tees
<donaldtees@xxxxxxxxxxxxx> wrote:
I've always believed that 99% of efficiency is in the algorithmic design. Once you've decided on the data structure, and the general approach to the problem, tiny code level decisions are not going to affect the speed much. They will have an effect, sure, but they won't fix an inefficient methodology, nor will they completely screw up an efficient approach.
I'm not sure what this means. Does it include moving stuff outside
of a loop that don't need to be in the loop? Does it include
understanding the database processes and structure? Does it include
understanding how to optimize swap space in the OS? Does it measure
the costs and benefits of a CoBOL sort vs. an external sort?
No, the exact opposite. I am saying that by the time you decide what the main loop is, you are probably far enough into it that the major efficiencies are relatively fixed. Maybe by the time you break it down into program modules that is true.
Decisions like comparing various sorts are not as important as decisions like "do I sort it, or do I keep it in an ordered data base from the start and do lookups?"
I have a program that looks to see what campus is running that
program. If it is one of the big campuses, it does an area sweep, if
it's one of the small campuses, it walks the set. This was
determined by testing the speeds of the two choices.
Closer to what I mean. Two completely different methodologies, depending on requirements. I do not think that something like testing indexing vs subscripting is going to make nearly as big a difference, and is usually a moot point. There are exceptions to every rule, of course, and such a tiny issue may turn out to be important in some very specialized instance, but in the normal turn of things, micro-level coding is a waste of effort.
Donald
.
- Follow-Ups:
- References:
- COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: William M. Klein
- Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: William M. Klein
- Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: Robert
- Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: Richard
- Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: Robert
- Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: Howard Brazee
- Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: Charles Hottel
- Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: pgx
- Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: Charles Hottel
- Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: donald tees
- Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: Howard Brazee
- COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- Prev by Date: Re: COBOL "non-myth" confirmed - Index and subscripts (MF onWindows)
- Next by Date: Re: [OT] Iraq
- Previous by thread: Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- Next by thread: Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- Index(es):
Relevant Pages
|