Details
-
Type: Improvement
-
Status: Closed
-
Priority: Default
-
Resolution: Fixed
-
Affects Version/s: 1.5.2
-
Fix Version/s: 2.2.0
-
Component/s: None
-
Labels:
-
Environment:N/A
Description
In quickfix.Message, the field initialisers for 'header' and 'trailer' each new up an object.
Generated Message classes then replace these. This creates unnecessary work for the GC.
I see no reason that subclasses need to re-assign the trailer.
The Header can vary with each FIX version, so perhaps the API could be modified such that the header is created by a protected method which is overridden in generated subclasses.