Comments (4)
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 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.
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.
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)
- Multiple Questions in One Thread HOT 2
- How do you proceed the back-end logic with Machine Learning to Front-End? HOT 1
- Are you using Univerate Polarization at Airbnb? HOT 1
- How did you start of with programming? HOT 1
- Can you mention some of the technologies Airbnb use besides React? HOT 1
- Any advice on things you want your interns at Airbnb to be good at when they're applying? HOT 1
- How much do you make in USD HOT 1
- What's your proudest achievement outside of anything work related? HOT 1
- How often do you use Airbnb yourself? HOT 1
- First programming memories HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ama.