Skip to content

Write directly to memory with Unsafe instead of ByteBuffer #21

@expanded-for-real

Description

@expanded-for-real

Most high-end serializers use UNSAFE instead of ByteBuffer to write directly to memory. Fury and Agrona both have Unsafe wrapper implementations that look promising and we can create something like that to reduce timing on all functional hot paths. This also potentially opens the door to better SIMD opportunities.

  • Fury - MemoryBuffer
  • Agrona - MutableDirectBuffer and UnsafeApi

Goal - reduce time spent on sperialize, merge, and project. Potentially also deserialize although this might need to be its own issue

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