GithubHelp home page GithubHelp logo

Comments (5)

rtfeldman avatar rtfeldman commented on July 20, 2024

Is the proposed solution that the Immutable would hold a mutable object?

from seamless-immutable.

tusharmath avatar tusharmath commented on July 20, 2024

I am not sure about this. There could be so many cases where you want to store it as an immutable. Though in this case we don't need it to be immutable.

from seamless-immutable.

rtfeldman avatar rtfeldman commented on July 20, 2024

What I meant was - could there possibly be any other solution to the stated
problem besides leaving it as a mutable object?

On Thu, Oct 29, 2015, 4:19 AM Tushar Mathur [email protected]
wrote:

I am not sure about this. There could be so many cases where you want to
store it as an immutable. Though in this case we don't need it to be
immutable.


Reply to this email directly or view it on GitHub
#72 (comment)
.

from seamless-immutable.

tusharmath avatar tusharmath commented on July 20, 2024

No. As per the above profiling it seems like the recursive conversion to Immutable takes a lot of time. I started facing this issue when I had a huge array of numbers that I wanted to plot on a graph.

How about doing it asynchronously?

from seamless-immutable.

rtfeldman avatar rtfeldman commented on July 20, 2024

If asynchronous is a solution, that can already be done; if you pass an immutable instance to Immutable, it just uses the one it's given and doesn't recurse.

As a next step, I'd suggest trying that (just iterate over the object you're given and recurse asynchronously until you've built up what you need) and see if that solves the problem.

from seamless-immutable.

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.