Details
Description
Recent work on performance improvements have shown memory consumption with large numbers of similar or identical Strings. In an effort to increase re-use of Strings, some of our JavaScript calls should be examined. For instance:
<form action="iceSubmit('j_id56');"
- can iceSubmit(this.id) or iceSubmit(form.id) be used?
- can ' be written as '
<a onclick="document.forms['iceForm']['iceForm:_idcl'].value='iceForm:iceTable:sortByTitle_click';iceSubmit( document.forms['iceForm'], this,event); return false;"
- can we still use iceSubmit(form, this, event) but search for a parent of "this" to find "form"? (Because <a> is not a form control.) iceSubmit could detect that the input control was a commandLink and set the hidden field directly.
onblur="setFocus('');"
- can this be replaced with "setFocus();"
iceSubmit(form,this,event);return false;
- can this be replaced with iceSubmit(form,this,event); or iceSubmitF(form,this,event);
Issue Links
- blocks
-
ICE-3083 Memory performance/efficiency
- Open
Please comment on the opportunities for re-use of JavaScript expressions. If Strings can be re-used, they can be more effectively pooled on the server.