Giter Club home page Giter Club logo

Comments (3)

arthurschreiber avatar arthurschreiber commented on July 18, 2024

I did some profiling, and V8 optimizes the #_transform method without any problems. I still found that breaking it up makes it easier to understand where time is spent when profiling, and I've not seen any negative performance impacts. See #9.

from dissolve.

wolfeidau avatar wolfeidau commented on July 18, 2024

The performance issues you used to see with V8 around this sort of thing was more around constantly ballooning memory and leaks than actual throughput.

Older v8 versions capped the length of functions which would be optimised. To observe this you can enable tracing for v8 and see how that function is optimised/deomptimised while your running tests.

In our case we had quite large complex data structures which got handed around a bit before cleanup so that also seemed to trigger increased memory use.

Either way V8 loves short simple code and more readily optimises it.

Good luck with your profiling!

from dissolve.

arthurschreiber avatar arthurschreiber commented on July 18, 2024

Closed by #9.

from dissolve.

Related Issues (13)

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.