lz4-java icon indicating copy to clipboard operation
lz4-java copied to clipboard

Added option to compress/decompress using memory pointers

Open merlimat opened this issue 7 years ago • 7 comments
trafficstars

In same case it might beneficial to be able to compress/decompress from direct memory buffer that don't necessarily belong to a ByteBuffer instance.

In that case it's possible, in unsafe Java world, to have a long that represent a pointer to a memory location. Passing that through JNI would be the most efficient way to compress that data.

merlimat avatar Oct 04 '18 21:10 merlimat

@odaira Can you take a look at this? It's on the same line as what described in #106

merlimat avatar Nov 21 '18 07:11 merlimat

@odaira Any chance on this one? :)

merlimat avatar Apr 12 '19 00:04 merlimat

@merlimat Sorry for the slow process. I'll include this to 1.6.0 once the review is done.

odaira avatar Apr 15 '19 16:04 odaira

👍 Thanks!

merlimat avatar Apr 17 '19 17:04 merlimat

Sorry, I must release 1.6.0 as soon as possible, so let me push this off until 1.7.0.

odaira avatar May 15 '19 09:05 odaira

Any plans on merging this?

emkornfield avatar Mar 11 '21 19:03 emkornfield

+1

Our case is to compress/decompress blocks of memory where both source and destination are allocated with Unsafe.allocateMemory().

p4654545 avatar Apr 06 '21 14:04 p4654545