Open mtopolnik opened 9 years ago
Thanks, I think this is a neat idea. As I would like to release the next version as soon as possible, let me revisit this after the next release. I would like to see if it will cause any visible performance difference.
I'm going over your code while considering to use it for a Hazelcast enterprise feature. In the same effort I have done some I/O coding similar to the
write(byte[], int, int)
method ofLZ4BlockOutputStream
. The way I wrote it is not too complex, but avoids repeatedly copying into the internal buffer whenever the supplied buffer is larger than it. Basically,Since performance is a high concern in this project, perhaps it is of value to bring up this detail.