[patch] speed-up DDM with cache disabled

January 8th, 2009
I have an application with quite a lot of drag zones and drop zones. We noticed that when selecting a drag zone (which is different from actual dragging) the mousedown event triggers a refreshCache for all dropzones. While this might be usefull for other application we don't need this recalculation. Combined with the useCache property that actually dis-allows cache use in the DDM, one can patch this behaviour by modifying the onMouseDown method to only refresh the cache if useCache is true.

if(this.DDM.useCache)
this.DDM.refreshCache(this.groups);

In our case this saves 1000+ calls to getStyle() (used to re-calculate the dropzones location) which saves around 0.1 sec everytime a drag zone is selected.




#If you have any other info about this subject , Please add it free.#
Your name:
E-mail:
Telphone:

Your comments:


If you have any other info about [patch] speed-up DDM with cache disabled , Please add it free.