Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 384172

Summary: [Grid] optimize client griditems memory usage
Product: [RT] RAP Reporter: Tim Buschtoens <tbuschto>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.5   
Target Milestone: 3.1 M5   
Hardware: All   
OS: All   
Whiteboard:

Description Tim Buschtoens CLA 2012-07-03 10:29:26 EDT
It is a conding standard in RAP that javascript contructors must create all fields that are going to be used on the object. For GridItem, this means creating about a dozen fields which may never be used, often arrays. Tests with IE8 show that even empty arrays need hundreds of byte in memory, which can quite add-up with large trees/tables. As an alternative, the fields may be created on demand by the setter. Getter can return default values if the field is undefined.
Comment 1 Ivan Furnadjiev CLA 2016-01-26 04:04:56 EST
This issue has been fixed in RAP 3.1 M4 with change https://git.eclipse.org/r/#/c/61896/