Skip to content

Concatenate long configstrings? #2

@res2k

Description

@res2k

As Paril commented here: Paril/q2repro@82b5600 a couple of bytes could be saved by sending long configstrings (notably the statusbar) as one string, instead of splitting them up.

Things to consider:

  • Concatenate implicitly or explicitly on writing?
    Implicitly would mean we detect "back to back" configstrings and write a longer string without an ID in between. (Ie the client provides CS_STATUSBAR + 0 ... CS_STATUSBAR + n).
    Explicitly means the client sends possibly long strings as one (ie the client just provides one long CS_STATUSBAR) and the library splits it up.
  • Similar question for reading: Provide a single configstring, or still separate parts?
  • In any case, we probably need to know the "max configstring" depending on game type.
  • I would like to avoid the library having to have knowledge which configstrings can be "long" or not.
  • ... which probably means write as a single string, but reading still returns separate parts.

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