Dear,sallen
Yes,I do known.
I just want to smooth the CPU usage when Views created.
If there is a module include large numbers of views. When it creat, the
IE will be keep silence in few seconds, in this time, every thing just freeze.
I done a progress bar there, but it could not run at this time.
I want to know, how to eliminate this kinds of things in laszlo.
Thanks!
======= 2005-12-31 09:58:54 In your mail =======
>It makes sense that there will be highest CPU load when the views are
>created. For declared views that happens on startup.
>
>eealzhang(?�{=旃追) wrote:
>
>> 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
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Laszlo-user mailing list
>>[email protected]
>>http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>>
= = = = = = = = = = = = = = = = = = = =
Best Regards!
And have a nice day!
Zeal
Zeal
[EMAIL PROTECTED]
2006-01-03
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user