Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.
This repository was archived by the owner on Jun 29, 2023. It is now read-only.

Reduce garbage during GelfMessage encoding and writing #86

@mp911de

Description

@mp911de

GelfMessage increases GC pressure when encoding and sending messages which originate in several sources. This ticket is to improve GC pressure by:

  • Omitting byte[] allocation
  • Reusing ByteBuffer
  • Revisit JSON serialization to operate directly on ByteBuffer
  • Investigate on BigDecimal removal

Once these steps are performed, more complex refactorings (String to byte conversion, ByteBuffer pooling and caching/reusing of Deflater) can be tackled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions