Letractively / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

In the HTC, alias 'this._fakeNode' to be shorter #309

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The length of the script in the HTC has a very large affect on performance.
Right now we have lots of 'this._fakeNodes'. See if we can alias those to
just 'this._f' or something and if that affects performance.

Original issue reported on code.google.com by bradneub...@gmail.com on 18 Sep 2009 at 4:35

GoogleCodeExporter commented 8 years ago
Also see if aliasing each of the fakeNode method names makes it faster, so 
rather than: 

function getAttribute(n) { return this._fakeNode.getAttribute(n); }

something like:

function getAttribute(n) { return f.getA(n); }

See if this lowers memory use as well.

Original comment by bradneub...@gmail.com on 5 Nov 2009 at 11:34