Dear all,
    I just have do a little test on creat view. (tcl is a lib file, tc is the main file)
    Mode 1:
    Use <view></view> to Creat a new view in a class.
    I have creat 10 views in a test class. And use 10 button to control their Attribute "visible". When button click ONe of them shows.
 
    Mode 2:
    Use new LzView() to Creat a new view in a class.
    I also creat 10 views, and 10 buttons, the only diff. is I change the <view/> to new LzView().
 
    PS:     I have put youOwnClass there, plz. replace them with your own class, a big one. In test I just use a Chart with some of the Dyn. components that real cost mem. and CPU usage. All views have their own chart, so there are more than 1 chart in a view. The more the result be more clear.
           
    Different:
    1. In Mode 1, When the page created, There are 10 view created but all have visible false. When creat, The CPU usage is gone high, but when creat done, one of the view show will cost low CPU usage. (I don't konw how to see the mem. cost, the IE in task manager seem the mem. usage unchanged.) So this mode performance is High in Start Low in Use.
    2. In Mode 2, When the page created, there are no views creat, so the CPU usage is very low, and the page is shown quickly. But when creat a view, The CPU usage Gone High, it's alway happened when you creat one. So this mode's performance is Low in start High in Use.
 
    Have a nice day!
    Best regards!
    Zeal

Attachment: tc.lzx
Description: Binary data

Attachment: tcl.lzx
Description: Binary data

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to