Changes between Version 1 and Version 2 of Ticket #7381, comment 6
- Timestamp:
- Nov 10, 2012, 3:09:19 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7381, comment 6
v1 v2 1 '''Performance:''' 2 1 3 I suppose the other issue is performance. I assume that most widget properties have falsy default values, and most properties are not specified to the constructor, so it would mean an order of magnitude increase in the number of setters called during page construction. 2 4 … … 11 13 12 14 It's interesting that Stateful only calls the custom setters for parameters passed to the constructor, and never for properties with default values. 15 16 Some performance results, running dijit/tests/benchTool.html, creating widgets programatically 17 18 ||browser||before||after|| 19 ||FF 16 (1000 widgets)||730||930|| 20 ||IE8 (100 widgets)||200-1000||300|| 21 ||Chrome (1000 widgets)||530||680|| 22 23 IE is all over the place, not sure what that means, although it's not unusual for me to see random benchmark results like that.