I've already given in to the idea of having to create the menu additions in the database and have the update for that particular mod ready to be released. And those menu selections were always under the admin's control to begin with. Now they can just move them around a little more.
The bechmark isn't exactly what I was talking about. In the case of rendering bits templates I agree it's much faster.
But I see people using it something like this...
Code:
in PHP..
While $whatever...
{
$whatever_each_array[] = xpartofdata;
}
$templater->register('whatever'. $whatever_each_array);
In template..
<ul>
<vb:each whatever_each>
<li>{vb:raw whatever_array_part}</li>
</vb:each>
</ul>
When bulding the array as a static value and displaying it as a single value is much faster..
Code:
In PHP...
While $whatever....
{
$static .= '<li>' . $whatever_array_part . '</li>' . "\r\n";
}
templater->register('static', $static);
in template...
<ul>
{vb:raw static}
</ul>