From: Pascal <pb...@oi...> - 2001-02-16 12:30:11
|
me again :) I don't think this test is really useable. Your current Tcanvas code misses ALOT of things DynLayer takes care of. DynLayer sets sizes, z-index,clipping,bgimages in initialisation (and also a few other style properties.. note that setting a style property is what slows everything down) I once did some optimization tricks to the dynlayer, by removing sizes/clipping etc.. this speeds up things BIG TIME, but also brakes useability for a large amount of widgets, and is less flexible. DynLayer has code included for fast child-creation.. even though there are no child layers in your test, this code is still called (function calls). This could be made faster in dynlayer, but for now is more readable for developers. Do another test with layers containing a large amount child layers.. Dynlayer's precreation will probably be faster. shreded enough? ;) Pascal Bestebroer (pb...@oi...) Software ontwikkelaar Oberon Informatiesystemen b.v. http://www.oibv.com > -----Oorspronkelijk bericht----- > Van: dyn...@li... > [mailto:dyn...@li...]Namens Eytan > Heidingsfeld > Verzonden: vrijdag 16 februari 2001 13:19 > Aan: Dynapi-Dev > Onderwerp: [Dynapi-Dev] TCanvas vs. DynLayer > > > I'd love to test performance one against the other. The only > test I did was > create 100 layers and check the times. In IE TCanvas was 200 > ms faster and > in NS it was 1300(canvas) to 10000(dynlayer). > > I'd love you guys to start tearing my canvas to shreds. > > Included in the zip are: > tcanvas.js > browser.js > > they need to be included in the document(working on adding .include) > > 8an > |