Git Product home page Git Product logo

Comments (4)

pierrec avatar pierrec commented on May 27, 2024

Hello,

Block dependency will definitely introduce bottlenecks, however the Go implementation should not be slower than the js one.
It's been a long time since I wanted to revisit this (it is my first go project and used this implementation as a learning exercise) and I may do so on my free time (so dont expect any quick fix unfortunately).

Thanks for the test case, it will help in figuring out what is going on.

from lz4.

alexfernandez avatar alexfernandez commented on May 27, 2024

Thanks for looking into it! Adding a bufio.Writer so that the output is buffered before being sent is not helping either.

I am also having issues in interoperability between Node.js and Go when Go sends, but I am not sure about why.

from lz4.

pierrec avatar pierrec commented on May 27, 2024

I have revisited the implementation and it is much faster now (getting the throughput from 24k events/s to 10millions/s).
I have dropped support for BlockDependency though as it adds complexity for no real benefit (at least in the tests that I have carried out).

I am unsure about the NodeJS / Go issues you are running into though. Some sample code would help ;).

from lz4.

alexfernandez avatar alexfernandez commented on May 27, 2024

BlockDependency is good to have for compatibility purposes when you don't control who is sending and how.

Thanks for the good work!

from lz4.

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.