Rendering performance for complete layout vs individual fields render flag
Hi ,
I have a general performance question and was wondering if someone can point out which implementation would be faster to render and maybe some theory along with the answer as to why.
Usecase :
=====
I have a tree table. Each row on the treetable is basically of 5 types (alteast for now). Meaning based on this type attribute I have to show different types of details. These details attributes for all the types are lets say 60-70 same. In some cases they are readable and in some cases non-readable.
Implementation 1
===========
I define 5 panel group layouts, 1 panel group layout for each type. Based on what row is selected and what it's type is I render the panel or choose not to render it. Since each panel is individially designed I can already set attributes read only or editable or not in dividual panels and dont have to worry about it for all types since the proper panel per type appear.
This involves in total of only 5 EL's to be evaluated to turn the panel on or off.
Implementation 2
===========
I define only 1 panel. I clump all the attributes in that panel. And each attribute on the panel is than evaluated individually if the render flag is turned on or off as well as the read only flag.
Which implementation will be faster 1 or 2 in term of rendering performance ?
In implementation 1 my page fragment really gets big ( 60-70 % common attributes multiplied by 5 times in the jsff implementation ). Do I pay a download price on the client due to larger size ? Or does the render flag already saves me from this.
Regards,