[Laszlo-user] Are percentage-based size specifications evaluated like a constraint?

P T Withington ptw at pobox.com
Mon Mar 9 17:08:46 PDT 2009


Percents do create constraints, but they won't be evaluated  
'continuously' -- constraints in LZX are pretty primitive, they are  
evaluated just once in response to an external stimulous. So, unless  
your views are continuously changing in size, that isn't the problem.

On Mar 9, 2009, at 15:49, Charles Watt <cwatt at racemi.com> wrote:

> I have a pretty large Laszlo app that puts a hefty strain on the  
> CPU.  At rest -- i.e., no data updates in progress, no network  
> interactions, no user interactions via keyboard or mouse, no visible  
> activity on the screen -- it consumed a full 99+% of the CPU such  
> that the application would appear to lock up for 5 - 10 seconds at a  
> time.  After removing several complex constraints, this is now down  
> to about an 80% CPU load.  There just aren't enough constrains left  
> to account for this load.  However, I do use width="100%" all over  
> the place.  Are these evaluated continuously like a constraint?  Any  
> other suggestions on where to look?  Unfortunately SWF 7 is out and  
> I and have several issues to correct before I can get a clean  
> compile in DHTML, so I'm stuck without a profiler.
>
> Thanks,
> Charlie Watt
> Racemi


More information about the Laszlo-user mailing list