Made two small performance tweaks for handling large COBOL files.
These are minor; it's difficult to make more major performance enhancements without a fundamental, wholesale change to the way attributes are handled for COBOL.
Currently, we have a lazy calculation of offset and size when there are
OCCURS DEPENDING ON clauses. The calculation involves a fast (but not instantaneous) calculation of offsets.
We would need to create a hierarchy of
FieldExtractor objects. One subclass would have simple constants used to pluck content from a buffer. Another subclass would have a specialized method function that would reference an existing, cached field value and implement just the multiply and add required to locate the field.
This is rather complex, and doesn't seem necessary at the present time.