Support #3667
closedPerformance with high number of objects
0%
Description
Hello Friends,
I'm generating an application that in some cases generate forms with more than 100 fields (with focus in/out triggers and two buttons attached), from about 40 fields the performance of the application start to slow down, (for example changing from one field to other takes about 1 second, when the same operation on a ten fields app is about ms),
Is there a logical/practical limit on the number of objects per app?
thanks in advance,
J.Rey
Updated by José Luis Rey over 9 years ago
Hello I'm still working on this issue, I saw that the problem is when I've a good number of WHBoxLayout on the same for, (I'm using WHBoxLayout to show 1 button, 1 field, 1 button on the same line resizing the width of the field when the form is scaled),
It is posible that the WHBoxLayout is trying to resize all objects offten?
Updated by Koen Deforche over 9 years ago
- Status changed from New to Feedback
- Assignee set to Koen Deforche
Hey,
The performance of WHBoxLayout may vary greatly from version to version. What version of Wt do you use?
But in any case, a layout manager has a great deal of overhead compared to plain CSS, so you should only use a layout manager if you need a layout that cannot be done with plain CSS.
Regards,
koen
Updated by José Luis Rey over 9 years ago
Hello Koen,
I'm using 3.3.2, I changed the layouts to css and it is working now without problems, (with a few thousands of objects :)).
Regards
Rey