Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty HHVM / HPHP

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Debug2014
Smarty Rookie


Joined: 13 Jan 2015
Posts: 6

PostPosted: Tue Jan 13, 2015 8:41 am    Post subject: Smarty HHVM / HPHP Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Tue Jan 13, 2015 8:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Debug2014
Smarty Rookie


Joined: 13 Jan 2015
Posts: 6

PostPosted: Tue Jan 13, 2015 8:53 am    Post subject: Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Tue Jan 13, 2015 9:25 am    Post subject: Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Tue Jan 13, 2015 10:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Debug2014
Smarty Rookie


Joined: 13 Jan 2015
Posts: 6

PostPosted: Tue Jan 13, 2015 10:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Debug2014
Smarty Rookie


Joined: 13 Jan 2015
Posts: 6

PostPosted: Fri May 01, 2015 10:22 am    Post subject: Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Fri May 01, 2015 2:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Debug2014
Smarty Rookie


Joined: 13 Jan 2015
Posts: 6

PostPosted: Fri May 01, 2015 2:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Fri May 01, 2015 3:10 pm    Post subject: Reply with quote

Install it same way as on PHP.
Back to top
View user's profile Send private message
Debug2014
Smarty Rookie


Joined: 13 Jan 2015
Posts: 6

PostPosted: Fri May 01, 2015 3:17 pm    Post subject: Reply with quote

Ok understood, thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP