Giter Site home page Giter Site logo

JNI Problem about lz4-java HOT 16 CLOSED

lz4 avatar lz4 commented on May 25, 2024
JNI Problem

from lz4-java.

Comments (16)

SaberParker avatar SaberParker commented on May 25, 2024

Ok Build Succeed...^_^
Just change ${java.home}/../include under the build.xml to your JNI include file directory

from lz4-java.

jpountz avatar jpountz commented on May 25, 2024

I'm glad it worked, I am not even sure someone else than me ever tried to build this project. :-) Does it work as expected?

from lz4-java.

SaberParker avatar SaberParker commented on May 25, 2024

Works Perfectly Well Done.
I Just Try'n to write some IndexInput And StreamInput for Lucene.
I 'll give you a touch once i done it.

from lz4-java.

jpountz avatar jpountz commented on May 25, 2024

Oh I'm very curious now! Are you trying to compress stored fields? For ElasticSearch, Solr or maybe a custom Lucene app?

from lz4-java.

SaberParker avatar SaberParker commented on May 25, 2024

Yeah For ElasticSearch can you help me out?
We can share and do it together if you would like ;)

from lz4-java.

jpountz avatar jpountz commented on May 25, 2024

I have taken a look at Elasticsearch compression a few weeks ago, it should be very easy to add LZ4 compression!

I can't help you until next week, feel free to ask me questions if you need help!

from lz4-java.

SaberParker avatar SaberParker commented on May 25, 2024

Ok i just wonder about the context and IndexInput class of LZ4 compress

from lz4-java.

SaberParker avatar SaberParker commented on May 25, 2024

Thank you + i'll keep in touch if i get to something ;)

from lz4-java.

SaberParker avatar SaberParker commented on May 25, 2024

Well Done.

from lz4-java.

jpountz avatar jpountz commented on May 25, 2024

Any news?

from lz4-java.

SaberParker avatar SaberParker commented on May 25, 2024

Hi, actually there a problem among JNI Compressor couple tests has been failed. i ve check out the safe-compressor and the results are not quite equal for python. hope you can share me the real compress instructions of LZ4 among you r library or share me some ideas about Compressor for elastic.

from lz4-java.

jpountz avatar jpountz commented on May 25, 2024

The problem with JNI is that is has a lot of overhead (bad for small inputs) and you need to build the shared library for every existing operating system and architecture. I think it would make more sense to use the Java Unsafe impl.

What do you mean by "the results are not quite equal for python"?

from lz4-java.

SaberParker avatar SaberParker commented on May 25, 2024

Ok, seems that's what was the problem i'm using Mac OSX maybe it's need to be debugged more on OSX i ve tried with safe java to compress some data and check uncompress on python wasn't match...i'll try to use the Unsafe impl. and give you feedback...

from lz4-java.

jpountz avatar jpountz commented on May 25, 2024

Maybe your python impl encodes the length at the beginning of the compressed stream. Are the last bytes more similar?

from lz4-java.

SaberParker avatar SaberParker commented on May 25, 2024

Yes...it's working i really appreciate that notice the library is quite well also i would to enhance the building of library instructions well paths, JNI and some fix...hope that you can share me a simple implementation of Compressor Component for Elastic Search...Great Job...Well done...

from lz4-java.

jpountz avatar jpountz commented on May 25, 2024

hope that you can share me a simple implementation of Compressor Component for Elastic Search...

There are already compressor components for other compression algorithms in ElasticSearch, have a look at the org.elasticsearch.common.compress package.

from lz4-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.