On 26/01/16 04:57, Mikael Vidstedt wrote: > > I've finally found some time to return to this and have a new version of > the patch which looks more promising: > > http://cr.openjdk.java.net/~mikael/webrevs/8141491/webrev.02/webrev/ > > This uses memcpy to read/write the native data and the preliminary > benchmark numbers on linux/x64 shows the expected performance. I'll work > on verifying that it doesn't impact other platforms negatively over the > next days/weeks.
I agree that memcpy is the right thing to use. It's portable and is inlined well on production-quality C compilers. Andrew.