Skip to content

Add an interface for parsing raw data (byte[]) #932

Description

@bfjm

Is your feature request related to a problem? Please describe.
Use String to pass messages. String is immutable, but many String objects cannot be reused

Describe the solution you'd like
Add an interface for message.fromBytes

Describe alternatives you've considered
Use ByteBuffer instead

Additional context
In a trading system, we want to reduce gc and increase object reuse, and if we think in terms of byte[], object reuse will increase

Activity

  1. chrjohn commented on Jan 20, 2025

    @chrjohn
    Member

    Thanks. Are you able to submit a PR?

  2. the-thing commented on Mar 11, 2025

    @the-thing
    Collaborator

    Extracting Message interface might be useful and creating new / custom bytes message for this one - in #921

    Adding fromBytes method similar to quickfix.Message#fromString(java.lang.String, quickfix.DataDictionary, quickfix.DataDictionary, quickfix.ValidationSettings, boolean) will not achieve much in terms of GC savings as the current quickfix.Message implementation relies heavily on string representation and parsing String quickfix.Message#messageData

  3. added theissue type on May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions