Hi!
I'm really into some heavy-duty websites. CouchCMS is pretty flexible and many times there are more than one way to program a piece of code. Writing high-load code means choosing one way over the other. Average page generation time is about 1.2-1.4 sec in my local environment, which can be more or less, depends on code decisions.
Here I welcome to discuss ways of measurement and specific code patterns that help.
For example, which one can be slower/faster -
P.S. PHP 5.4, MSQL 5.5. I read php7 is much faster.
I'm really into some heavy-duty websites. CouchCMS is pretty flexible and many times there are more than one way to program a piece of code. Writing high-load code means choosing one way over the other. Average page generation time is about 1.2-1.4 sec in my local environment, which can be more or less, depends on code decisions.
<!-- Page generated by CouchCMS - Simple Open-Source Content Management -->
<!-- in: 1.238 sec -->
<!-- Queries: 40 -->
<!-- in: 1.725 sec -->
<!-- Queries: 336 -->
Here I welcome to discuss ways of measurement and specific code patterns that help.
For example, which one can be slower/faster -
- Code: Select all
<cms:get_custom_field 'image' masterpage='somepage.php' />
- Code: Select all
<cms:pages masterpage='somepage.php' limit='1' >
<cms:show image />
</cms:pages>
P.S. PHP 5.4, MSQL 5.5. I read php7 is much faster.