3 ms·
vdom is overhead server-side too. When rendering HTML on the server you really want to stream longer pre-allocated strings as much as possible. The serializatio
by spankalee 4y ago
vdom is overhead server-side too. When rendering HTML on the server you really want to stream longer pre-allocated strings as much as possible. The serialization overhead of converting many small objects to individual HTML tags shows up in profiles. And when you want low latency and the ability to handle high loads, it matters.
- scotty79 4y agoCan we please go back to templates compiled directly to php files that just get executed?
- postalrat 4y agoWhy php and not JavaScript?
- scotty79 4y agoYeah, I can take JavaScript. After all it's 21 century. So from now on we only use template engines that compile templates directly to simple .js files. Agreed?
- dgb23 4y agoPHP has many other problems. React was literally developed by arguably the largest PHP shop. In terms of performance specifically you do a ton of unnecessary, redundant work, because you recreate the whole world and throw it away again with every request. PHP does it’s best to be a fast language and mitigate this issue, but it can’t really solve it.
- scotty79 4y agoThat's because there's no PHP in the front-end. ;)