GithubHelp home page GithubHelp logo

Comments (4)

lencioni avatar lencioni commented on August 25, 2024 2

SSR with React in my eyes needs some work, still, to be optimized!

Yes, there is a lot of low-hanging fruit there. @aickin was recently saying that with his PR and some optimizations he has been working on, it looks like he can improve SSR perf by an order of magnitude.

Do you have examples of, say, server.js?

Unfortunately I do not. Sorry!

from ama.

aickin avatar aickin commented on August 25, 2024 1

@aickin was recently saying that with his PR and some optimizations he has been working on, it looks like he can improve SSR perf by an order of magnitude.

Thanks for the shout out, @lencioni!

I'd like to clarify that I thought that there might be an order of magnitude to squeeze out by rewriting, and my first prototype did show something like a 7-8x improvement. I've since added a bunch more features and special cases to it so that it passes the entire unit test suite, and it's running at more like 4-5x faster than React 15. Still a great speedup, but not quite a full order of magnitude.

Do you have examples of, say, server.js ?

You might be interested in react-server, a server-rendering project from my former colleagues at Redfin. It's still pretty new as an OSS project, but it's been used in production for quite a while now.

Edited to add: I just ran another benchmark exercising properties, and it showed only ~2x improvement, so it seems like the perf is very dependent on workload.

from ama.

lencioni avatar lencioni commented on August 25, 2024

We have a node service to render React on the server. Speaking of SSR, I've been following this PR with great interest: facebook/react#6618

from ama.

evenstensberg avatar evenstensberg commented on August 25, 2024

Indeed! Been looking at that as well. Excited to see how it turns out in the end. SSR with React in my eyes needs some work, still, to be optimized! Do you have examples of, say, server.js ?

from ama.

Related Issues (11)

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.