History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WTR-216
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Unassigned
Reporter: Hugh
Votes: 2
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Watir

Performance degradation with a large number of html elements

Created: 05/Jun/08 10:37 AM   Updated: 03/Nov/08 11:26 AM
Component/s: HTML Controls
Affects Version/s: 1.5.4
Fix Version/s: 1.6.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. HTML File wallofcheckboxes.html (95 kb)

Environment: XP, Watir 1.5.4 and Ruby 1.8.2 (needed for modal dialogs)


 Description  « Hide
If I have a large number of controls, an html page like the following takes 10 seconds to check the last box with 1.5.4 where the same page in 1.5.1.1230 is almost instantaneous...sadly there's a page in our app that is a wall of checkboxes...

This is the IRB command I used:
irb(main):016:0> s= Time.now.to_i; ie.checkbox(:name, 'custom_monetary_value10:config.admin.required999').set; puts Time.now.to_i -s

HTML snippet (I just used excel to quickly create the rows for a total of 1000):

<head><title>Test</title></head>
<table>
<tr><td> <INPUT type=checkbox name=custom_monetary_value10:config.admin.required1 ></td></tr>
<tr><td> <INPUT type=checkbox name=custom_monetary_value10:config.admin.required2 ></td></tr>
<tr><td> <INPUT type=checkbox name=custom_monetary_value10:config.admin.required3 ></td></tr>
<tr><td> <INPUT type=checkbox name=custom_monetary_value10:config.admin.required4 ></td></tr>
<tr><td> <INPUT type=checkbox name=custom_monetary_value10:config.admin.required5 ></td></tr>
...
<tr><td> <INPUT type=checkbox name=custom_monetary_value10:config.admin.required1000 ></td></tr>
</table>


 All   Comments   Work Log   Change History      Sort Order:
Hugh - 05/Jun/08 10:39 AM
Page with 1000 checkboxes

Bret Pettichord - 05/Jun/08 11:15 AM
Thanks for the report! We've had several reports of this problem, but this is the first with a reproducible example. I will look into this.

Bret

marekj - 09/Jul/08 01:38 PM
Yes, I noticed that too. I have a page where I need to configure about 50 elements (text_fields, selects, radios and checkboxes all mixed in). When using :fast speed or even :zippy I noticed the very slow response time. I'll keep watching for other pages and try to capture details to report.

marekj - 09/Jul/08 01:39 PM
oops. forgot to add this is happening on version 1.5.6 (I upgraded from 1.5.3)


Bret Pettichord - 07/Oct/08 02:08 PM
Fixed with commit 1486. Thanks for the test.

Hugh - 03/Nov/08 11:26 AM
Verified that this works for our application in 1.6.1. Thanks for the fix :)