Skip to content

Consider adopting fastutil for deserialization of primitive collections #397

@j-tyler

Description

@j-tyler

Array and Maps of primitive types are common in Avro schema. Java collections do an acceptable generic job, but type-specific collections such as fastutil can save overhead in multiple ways:

  1. No boxing/unboxing of numbers.
  2. Primitive type-specific collections lower memory overhead of underlying representations.
  3. Which is more pronounced in JVM heaps over 32gb due to 16bit object reference overhead.

fastutil is well respected and widely adopted for performance, so using it for Java representation of Avro data could provide a nice benefit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions