Re: Ultimate efficiency using INITIALIZE statement in COBOL



Pete Dashwood wrote:

The OS can't move stuff around any faster than COBOL (or any other
language) does...


Whether the OS can or cannot is probably immaterial. I just did a little
test by timing a loop of a 2500-byte move. Admittedly, it was on my piddly
PC, but 100,000,000 iterations of "MOVE A TO B" took, wait for it now.... 29
seconds. (The PERFORM loop itself took 0.39 seconds).

That's 0.00000029 seconds per move, or, for the 55,000 transactions
mentioned, about 16 milliseconds.

The OP, by investing several days of research, coding, and testing can
expect a savings of, oh, 14 milliseconds per day. Max.

My original supposition: "Coding for micro efficiency is usually futile,"
still stands.


.



Relevant Pages

  • Re: Ultimate efficiency using INITIALIZE statement in COBOL
    ... language) does... ... (The PERFORM loop itself took 0.39 seconds). ... expect a savings of, oh, 14 milliseconds per day. ... "Coding for micro efficiency is usually futile," ...
    (comp.lang.cobol)
  • Re: Ultimate efficiency using INITIALIZE statement in COBOL
    ... test by timing a loop of a 2500-byte move. ... (The PERFORM loop itself took 0.39 seconds). ... expect a savings of, oh, 14 milliseconds per day. ... "Coding for micro efficiency is usually futile," ...
    (comp.lang.cobol)
  • Re: Ultimate efficiency using INITIALIZE statement in COBOL
    ... test by timing a loop of a 2500-byte move. ... (The PERFORM loop itself took 0.39 seconds). ... expect a savings of, oh, 14 milliseconds per day. ... "Coding for micro efficiency is usually futile," ...
    (comp.lang.cobol)
  • "Loop dee Loop" & MP3 Code
    ... nested inner code loop to each perform respectively distinct yet ... the Fraunhofer IIS started to work on perceptual audio coding in ... masking threshold or the allowed noise for each coder partition. ... Quantization and Coding ...
    (comp.object)
  • Re: TaskSpeed results for My Library
    ... But what is this apparent function declaration doing here (in this ... of syntax extension that accommodate apparent function declarations in ... This is the main timing loop. ... Date object is more than 200 milliseconds after the date reported by ...
    (comp.lang.javascript)