Re: RFR: 8299576: Reimplement java.io.Bits using VarHandle access [v4]

2023-01-04 Thread Per Minborg
> 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` > improvem

Re: RFR: 8299576: Reimplement java.io.Bits using VarHandle access [v4]

2023-01-04 Thread Uwe Schindler
On Wed, 4 Jan 2023 12:20:28 GMT, Per Minborg wrote: >> 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

Re: RFR: 8299576: Reimplement java.io.Bits using VarHandle access [v4]

2023-01-04 Thread Uwe Schindler
On Wed, 4 Jan 2023 12:20:28 GMT, Per Minborg wrote: >> 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