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 v3.1.4 - memory cache issue

 
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 -> Smarty 3
View previous topic :: View next topic  
Author Message
groupweb
Smarty n00b


Joined: 15 Nov 2011
Posts: 2

PostPosted: Tue Nov 15, 2011 2:41 pm    Post subject: smarty v3.1.4 - memory cache issue Reply with quote

I am using smarty v3.1.4. I think due to this memory consumption is very high. My script occupy 15,377,280bytes of memory, and when I use smarty version v2.1, same script occupy 8,733,000bytes of memory.
Can you please help me for this?

Its a kind request to you, please reply me as soon as possible.
Thax.
Back to top
View user's profile Send private message
U.Tews
Administrator


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

PostPosted: Tue Nov 15, 2011 3:45 pm    Post subject: Reply with quote

How did you measure it?

What's the size of the compiled templae files in Smarty2 and 3?

Do you use caching?
Back to top
View user's profile Send private message
groupweb
Smarty n00b


Joined: 15 Nov 2011
Posts: 2

PostPosted: Wed Nov 16, 2011 4:11 pm    Post subject: Reply with quote

In v3.1.4 size of compiled template is 12,122,256 bytes and in v2.1 7,698,568 bytes.

I am using APC Cache in PHP v5.
Back to top
View user's profile Send private message
U.Tews
Administrator


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

PostPosted: Thu Nov 17, 2011 3:58 pm    Post subject: Reply with quote

The Smarty3 template compiler is much more complex as the Smarty 2 compiler. So during compilation Smarty3 does use much more memory as Smarty2. This should not be an issue as compiling a template is a one time process only after a template was modified.

The size of the compiled template files located in the $compile_dir folder (default ./template_c) should a comparable size.
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 -> Smarty 3 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