Skip to content
This repository was archived by the owner on Oct 4, 2022. It is now read-only.
This repository was archived by the owner on Oct 4, 2022. It is now read-only.

Max size of a StringDocument #1

@thanodnl

Description

@thanodnl

The UTF write function of java only accepts Strings less than 2^16-1 bytes. This could be unsuitable for future use.

Possibilities to go along with are:

  • Accept it and live long and prosper
  • use 4 bytes instead of 2 to store the length in bytes
  • use vlq (variable length qualifier) to store the length

Both, the 4 bytes and vlq, solutions imply that the serialization and deserialization of Strings should be done manually. This is error prone work.

A solution should be in place before a stable version because it is hard to change the implementation later on while supporting data migration.

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