Giter VIP home page Giter VIP logo

Comments (9)

lemire avatar lemire commented on May 17, 2024 4

Yes. WebAssembly is probably out for the time being, but a native node extension is something that ought to be done.

from simdjson.

kevyworks avatar kevyworks commented on May 17, 2024 1

In what size of json file we can expect the benefit? if that is known, I think it will switch in using this instead? but for me, as it is working best as a compiled binary..maybe a node script that Interface it using child_process is more suitable?

from simdjson.

serv avatar serv commented on May 17, 2024

Say we have a working Node binding to simdjson.

In the readme, it reads:

Performance is optimized for JSON documents spanning at least a few kilobytes up to many megabytes: the performance issues with having to parse many tiny JSON documents or one truly enormous JSON document are different.

Does this mean that, this library would not be a suitable replacement for JSON.parse(jsonstring) in Node.js, where jsonstring is just a single line of JSON string?

from simdjson.

revskill10 avatar revskill10 commented on May 17, 2024

The issue is not resolved yet, why close then ?

from simdjson.

lemire avatar lemire commented on May 17, 2024

Does this mean that, this library would not be a suitable replacement for JSON.parse(jsonstring) in Node.js, where jsonstring is just a single line of JSON string?

If you are parsing a single line of JSON, then it is unlikely that the time spent parsing is significant enough to warrant optimization unless you are parsing many, many such cases. And at that point, things like function call overhead and memory allocations are likely to dominate your running time. This is potentially interesting, but it is not something that this library was optimized for.

from simdjson.

parweb avatar parweb commented on May 17, 2024

reactjs/rfcs#68 (comment)

from simdjson.

parweb avatar parweb commented on May 17, 2024

const [isOnline, setIsOnline] = add(users, isOnline(friend.id));

from simdjson.

lemire avatar lemire commented on May 17, 2024

In what size of json file we can expect the benefit?

From the README: "Performance is optimized for JSON documents spanning at least a tens kilobytes up to many megabytes". This library (simdjson) is for processing large volumes of JSON.

from simdjson.

lemire avatar lemire commented on May 17, 2024

My statement above were deliberately pessimistic: simdjson does very well even on tiny documents. At the time I wrote the above comments, I had not benchmarked simdjson on tiny documents.

from simdjson.

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.