wayfair / hypernova-php

PHP client for rendering your React components via Hypernova.
BSD 2-Clause "Simplified" License
76 stars 21 forks source link

PHPv8js vs Hypernova #14

Closed aftabnaveed closed 6 years ago

aftabnaveed commented 6 years ago

I know you mentioned that phpv8js may not be ready for production, but since it is an in-memory solution don't you think it would be faster than Hypernova? Did you do any benchmarks to compare both?

roippi commented 6 years ago

I don't offhand, I can see if I can dig up anything from that project.

Let me drop some bulletpoints, kind of freeform-thought style:

I'm probably forgetting some stuff. Hope that helps.

aftabnaveed commented 6 years ago

Thanks @roippi for the detailed answer after playing and trying Hypernova I can now say that it is a better solution than phpv8js which we are currently using. Hypernova technically is an in memory solution and it has Batchmanager for rendering multiple components in parallel which PHPv8JS does not provide.

I am now just wondering how can I re-hydrate my components on the client side? When I include the client javascript bundle it basically re-initialises the page.