Giter VIP home page Giter VIP logo

Comments (6)

patrickt avatar patrickt commented on September 27, 2024

This is very interesting. I’m going to see if I can reproduce in https://github.com/patrickt/effects-benchmarks.

from fused-effects.

patrickt avatar patrickt commented on September 27, 2024

I don’t think we observed any performance degradation in our internal app, but I could be wrong, and that’s a very different workload.

from fused-effects.

patrickt avatar patrickt commented on September 27, 2024

Haven’t observed it in effects-benchmarks. Going to try the bench folder here and see if that reveals something. Perhaps INLINE stuff is coming into play, or this is an instance of criterion’s timing issues (we prefer gauge).

from fused-effects.

patrickt avatar patrickt commented on September 27, 2024

Hmm, can’t reproduce this in the benchmark suite either.
With 1.0: https://gist.github.com/patrickt/ac727d6e5ca9ee557c5b6ccb7115e26b
With 1.1: https://gist.github.com/patrickt/7beb3f075b04d3fc15f39b238666bc41

from fused-effects.

AlistairB avatar AlistairB commented on September 27, 2024

Hmm interesting. 'file sizes' and 'reinterpretation' do show the expected improvement. Perhaps 'big stack' and 'countdown' are hitting some edge case that is now slower.

BTW I cleaned up the diff between the 2 branches AlistairB/effect-zoo@removed-eff...fused-1.1

from fused-effects.

robrix avatar robrix commented on September 27, 2024

Hella cool work @AlistairB, thank you so much for doing this and sharing your results with us!

I’m not seeing a smoking gun here; since this isn’t using any of our carriers that I can see, the only real change seems to be the difference in alg’s signature between the two versions, which I’d expect to be a net null or even slight win for 1.1 given that we no longer need to (re)construct effects via Effect (and thus should enjoy fewer allocations overall).

It’s definitely possible that we’re more sensitive to inlining now, or that we’ve underestimated the cost of constructing operations with send in the new model; hopefully we can quantify where these costs are coming from a little more precisely.

Either way, thank you again!

from fused-effects.

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.