Giter VIP home page Giter VIP logo

Comments (3)

davisp avatar davisp commented on August 16, 2024

I'm not inclined to have such a limitation. Seeing as term_to_binary doesn't have anything like that I'm not inclined to add one here. Although, a related thing that I haven't gotten around to is to make sure and bump the reduction count. It might be a good idea to figure out something there. If you do look at that please to open a new ticket for it.

from jiffy.

si14 avatar si14 commented on August 16, 2024

It's not just about bumping reduction count, it's also about blocking the scheduler (AFAIK scheduler can't reschedule current reduction if it is in NIF). Actually I don't have this issue right now but I can suffer from it in a not so distant future, so I'm wondering what do you think about this.

from jiffy.

davisp avatar davisp commented on August 16, 2024

Right, my point is that the same exact thing affects term_to_binary/1 and binary_to_term/1. Most people are concerned about NIFs because of the stern warning in the docs, but if we compare to existing BIFs then there's no issue. If the size of JSON inputs becomes such an issue that it does have negative effects then the only real answer is to use a pure Erlang parser and take the performance hit.

from jiffy.

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.