Git Product home page Git Product logo

Comments (14)

okkez avatar okkez commented on July 22, 2024

Additional information.

msgpack5 is too slow, so I want to revert msgpack5 related changes.

See http://yukidarake.hateblo.jp/entry/2015/08/10/194319 (Written in Japanese)

from fluent-logger-node.

edsiper avatar edsiper commented on July 22, 2024

thanks for raising this topic.

How complex is to port to the new library ?

from fluent-logger-node.

okkez avatar okkez commented on July 22, 2024

It is very easy to support msgpack-1.0.2.
Just revert msgpack5 related changes in 6f2a3f6 and adjust package.json.

I have patches in my laptop and I will work for this in next week.

from fluent-logger-node.

edsiper avatar edsiper commented on July 22, 2024

that would be great. I'd definitely support this change.

from fluent-logger-node.

repeatedly avatar repeatedly commented on July 22, 2024

In fluent-logger-node, we use only encoding.
Could you check only pack/encode performance?
If msgpack5 is too slow, vote for changing to msgpack.

from fluent-logger-node.

okkez avatar okkez commented on July 22, 2024

Check performance.
https://gist.github.com/okkez/2b77b32ad3a966446347

msgpack is faster than msgpack5.

$ node benchmark.js
msgpack5: 856ms
msgpack: 29ms

from fluent-logger-node.

repeatedly avatar repeatedly commented on July 22, 2024

I see. One concern is msgpack5 has extension type support.
Does msgpack have this feature?

from fluent-logger-node.

okkez avatar okkez commented on July 22, 2024

FYI: kawanet/msgpack-lite

msgpack-lite is faster than msgpack.
msgpack-lite supports extension type.

from fluent-logger-node.

okkez avatar okkez commented on July 22, 2024

Update benchmark script and result.
https://gist.github.com/okkez/2b77b32ad3a966446347

$ node ./benchmark.js
msgpack5: 821ms
msgpack: 36ms
msgpack-lite: 23ms

from fluent-logger-node.

okkez avatar okkez commented on July 22, 2024

Does msgpack have this feature?

Maybe msgpack does not support extension type feature.
I've checked JavaScript APIs and README.md.

from fluent-logger-node.

okkez avatar okkez commented on July 22, 2024

I've created branch https://github.com/okkez/fluent-logger-node/tree/use-msgpack-lite
It is very easy to change back end library to process msgpack.
Pass all tests with msgpack-lite for now.

How about msgpack-lite for fluent-logger-node?
If we use msgpack-lite, we can support all node versions in master branch for now.

from fluent-logger-node.

repeatedly avatar repeatedly commented on July 22, 2024

👍 > msgpack-lite

from fluent-logger-node.

okkez avatar okkez commented on July 22, 2024

I've released new version 0.4.1 using msgpack-lite.

from fluent-logger-node.

kawanet avatar kawanet commented on July 22, 2024

😃

from fluent-logger-node.

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.