View previous topic :: View next topic |
Author |
Message |
Debug2014 Smarty Rookie
Joined: 13 Jan 2015 Posts: 6
|
Posted: Tue Jan 13, 2015 8:41 am Post subject: Smarty HHVM / HPHP |
|
|
Hi, i was wondering whether i could get a straight answer to this as i am struggling else where.
Is Smarty compatible with HHVM/HPHP ?
If not are there any recommended other routes that can compile the code to process the site quicker *Excess 2m lines currently.
Thanks |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Tue Jan 13, 2015 8:50 am Post subject: |
|
|
Quicker than what? Spherically quicker?
Smarty includes an extensible caching layer, that could just let you skip your "2m lines" and get straight to the results. |
|
Back to top |
|
Debug2014 Smarty Rookie
Joined: 13 Jan 2015 Posts: 6
|
Posted: Tue Jan 13, 2015 8:53 am Post subject: |
|
|
AnrDaemon wrote: | Quicker than what? Spherically quicker?
Smarty includes an extensible caching layer, that could just let you skip your "2m lines" and get straight to the results. |
Ha, currently we are using Smarty Cache and it is as slow as hell
Also Ajax is slow, now one could put down to bad coding but the companies we have used are saying this is not the case . |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Tue Jan 13, 2015 9:25 am Post subject: |
|
|
I don't know your specifics, but from what you're saying, Smarty could be not the culprit here. Especially when you mention AJAX.
However, when speaking about Smarty itself, it should theoretically work. But I don't think you can get much speedup, comparing to latest versions of PHP. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Tue Jan 13, 2015 10:10 pm Post subject: |
|
|
Smarty can run with HHVM, but currently the HHVM hackificator will not convert automatically all Smarty classes.
There is some work in process to optimize the next release 3.1.22 for HHVM. |
|
Back to top |
|
Debug2014 Smarty Rookie
Joined: 13 Jan 2015 Posts: 6
|
Posted: Tue Jan 13, 2015 10:42 pm Post subject: |
|
|
U.Tews wrote: | Smarty can run with HHVM, but currently the HHVM hackificator will not convert automatically all Smarty classes.
There is some work in process to optimize the next release 3.1.22 for HHVM. |
Thank you, is there any set release date?
Also what is the easiest process to align a existing site to HHVM? will a core code rebuild be required or a simple add the HHVM in and align scripts to feed in to it? - this area is very confusing as there is nothing in layman terms on how to set up... |
|
Back to top |
|
Debug2014 Smarty Rookie
Joined: 13 Jan 2015 Posts: 6
|
Posted: Fri May 01, 2015 10:22 am Post subject: |
|
|
Hi, is there any update on Smarty/HHVM i have my team on standby ready to integrate and convert over and we can not find any sort of update, is there a beta release even available?
I have been following the posts on git
https://github.com/facebook/hhvm/issues/2763#issuecomment-71064769 |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri May 01, 2015 2:52 pm Post subject: |
|
|
Smarty can run on HHVM today. Just install it as normal.
But HHVM current has one PHP5 incompatibility issue.
See https://github.com/facebook/hhvm/issues/4797#issuecomment-73614165
Because of that you may see the content of an updated template source or cached template with the delay of one page call.
Normally this should not be acceptable.
I have currently no idea when the people from HHVM will fix this.
Besides that there are no know issues when running Smarty on HHVM.
The upcoming major Smarty version 3.2 will include some optimizations for HHVM. It will allow to convert most of the Smarty code with the HHVM hackificator to Hack. This will increase speed a bit more. |
|
Back to top |
|
Debug2014 Smarty Rookie
Joined: 13 Jan 2015 Posts: 6
|
Posted: Fri May 01, 2015 2:57 pm Post subject: |
|
|
Thank you for getting back to me so quickly, ok this is looking promising, question is though have you got any suggestions on installation guides so we dont damage the site? |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri May 01, 2015 3:10 pm Post subject: |
|
|
Install it same way as on PHP. |
|
Back to top |
|
Debug2014 Smarty Rookie
Joined: 13 Jan 2015 Posts: 6
|
Posted: Fri May 01, 2015 3:17 pm Post subject: |
|
|
Ok understood, thank you. |
|
Back to top |
|
|