Skip to content

Optimize BufferView implementations #4884

@andreipaduroiu

Description

@andreipaduroiu

Problem description
Consider the following classes and/or methods:

  • BitConverter.readInt, BitConverterreadLong` (and all associated overloads and methods)
  • ByteArraySegment
  • BufferView.equals
  • ByteArrayComparator

Explore ways to have these use as much native code/HW instructionset as possible in order to make them more efficient.

Problem location
Common.

Suggestions for an improvement

  1. Consider using ByteBuffer inside ByteArraySegment.
  2. Consider upgrading to Java 11 and make use of the intrisic methods added in the java.util.Arrays class.
  3. Rename ByteArrayComparator to BitwiseComparator and expose 3 final members: ByteArrayComparator, ArrayViewComparator and BufferViewComparator.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions