Sujet : Re: The joy of FORTRAN
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : alt.folklore.computers comp.os.linux.miscDate : 28. Sep 2024, 00:43:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vd7fv1$tdq8$12@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Pan/0.160 (Toresk; )
On Fri, 27 Sep 2024 20:38:38 GMT, Charlie Gibbs wrote:
I was once called in to optimize a CPU-bound COBOL program.
The genius who wrote it declared all subscripts as COMP-3.
Changing them to COMP-4 knocked 30% off the execution time.
Did you just change
DEFINE TYPE COMP AS COMP-3
to
DEFINE TYPE COMP as COMP-4
and that would take effect everywhere that COMP was used?
Oh, wait, COBOL didn’t have typedefs ...