Hey Marco,

2014-03-05 19:17 GMT+01:00 Marco Kinski <[email protected]>:

> Hi List,
>
> i have a Dialog which is composed of a WStackedWidget to Display 3
> WTableViews, 1 WTreeView and some forms layouted with the WLayout classes.
>
> Closing and recreating this dialog on IE8 takes ~10 seconds (on firefox
> less than 1 second).
>
> I used the build in profiler and noticed that most of the time is spent in
> a function called Wt.js/getCssRule. I placed traces inside this function
> and found out that half the time it does not find the element its looking
> for (while recreating the dialog it runs ~120 times with ~900 elements to
> check against).
>
> Is it possible to reduce the amount that function gets called?
>

It seems that indeed we have full knowledge of what is already defined and
thus we should not be calling getCssRule() if it the rule does not yet
exist.

The function void WCssStyleSheet::ruleModified(WCssRule *rule) is probably
not taking into account that a rule is added instead of being modified.

Can you file a bug for this?

The reason why it is so slow, could it be that you have a large amount of
columns in your WTreeView or WTableView classes ?

Regards,
koen
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to