*************************************************************************
It seems my mail have not contain in my last mail so I just sent it again.
*************************************************************************
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
Best Regards!
And have a nice day!
Zeal
Skipped content of type multipart/alternative-------------- next part
--------------
A non-text attachment was scrubbed...
Name: tc.lzx
Type: application/octet-stream
Size: 611 bytes
Desc: not available
Url :
http://openlaszlo.org/pipermail/laszlo-user/attachments/20051230/4be23051/tc.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tcl.lzx
Type: application/octet-stream
Size: 18466 bytes
Desc: not available
Url :
http://openlaszlo.org/pipermail/laszlo-user/attachments/20051230/4be23051/tcl.obj
Zeal
[EMAIL PROTECTED]
2005-12-30
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user