template sctipt execution time
Hi all!
I'm progammer from Moscow, so sorry for my english.
I wrote a template class, which has 2 advanced options
1) Cash to mysql (it collects all tpl files, grabs them into one, and
pushes into db)
2) Cash to variable in file (collects all tpl files. creates in same
dir php file, creates function which returns array with full tpl data)
I thought, that the second pt. will decrease the exection time...
but.. as appeared - it's the longest one.Template file browsing (like
overwhelming majority template classes do - opening file, parsing..
next...) is the most quickest. I thought that using array solution
will be.
For example we have 20 files, and php must open each of them and
parse. What is the php load?
Question: What is the best solution? Or maybe i do smth wrong. Don't
know. Wanna write the most quickest script.
Thx,
Ivan
|