> Currently, `java.io.Bits` is using explicit logic to read/write various 
> primitive types to/from byte arrays. Switching to the use of `VarHandle` 
> access would provide better performance and less code. 
> 
> Also, using a standard API for these conversions means future `VarHandle` 
> improvements will benefit `Bits` too. 
> 
> Improvements in `Bits` will propagate to `ObjectInputStream`, 
> `ObjectOutputStream` and `RandomAccessFile`.
> 
> Initial benchmarks and performance discussions can be found here: 
> https://github.com/openjdk/panama-foreign/pull/762

Per Minborg has updated the pull request incrementally with one additional 
commit since the last revision:

  Update copyright year in test class

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/11840/files
  - new: https://git.openjdk.org/jdk/pull/11840/files/9b5af054..13af8b6c

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=11840&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11840&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/11840.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11840/head:pull/11840

PR: https://git.openjdk.org/jdk/pull/11840

Reply via email to