written by Jian Huang, 22. March 2012
Project performance is closely tied to rendertag usage. Here are some rendertag usage best practices that should be taken into consideration when implementing a project.
This is a rendertag that allows storage of variable, but it is unofficial and unsupported. Should projects experience performance or content output issues while using this rendertag, product support may be denied or delayed due to slow priority since it not a product issue but an implementation issue.
Additionally, upon full site publish or multiple users accessing the same Store value may experience a race condition since everyone is trying to write and read from the same variable. For example, generated link for Page B links to Page A because the link value was read milliseconds before it was updated.
A page object get loaded into memory prior to any page info marshaling/inspection call, wide usage in project cause the server to use up memory much quicker. Since the memory garbage collector in .NET could not keep up with the clean up, server tend to become unresponsive more often.
Another issue with rendertag and this rendertag in particular is caching. Content retrieve via rendertag get cached, but the cache do not get update notification upon targeted content change, hence rendertag continues to display old content. Please note, this issue do not occur if rendertag is used within navigation template.
Content retrieved within foreach rendertag will experience caching issue. Content output within foreach rendertag via Store rendertag will experience race condition upon heavy multiple access.
Moogway April 23, 2012 at 6:37 AM
Good stuff here! We'll be looking more closely at out RenderTag use where I work now after reading that.
Does anyone know is PHP pre-execute blocks are a good alternative to using reddot conditions?
Jian Huang May 8, 2012 at 10:06 AM
Any preexecution adds another layer of complexity and execution time on top of the existing code base. It is usually recommended not to use preexecution if possible.
Though possible, running PHP on IIS, within an ASP/.NET application may require additional installation and server care. Personally, the extra work out weights the benefit.
Source: RenderTag, Project Performance, Product Support
© copyright 2012 by Jian Huang