Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread General coding directions
Fri, May 25 2012 2:11 AMPermanent Link

Leslie

Tim,

There are important considerations when using Javascript and DOM  having effect on the performanace. Code size ... It would be nince to have a colletion of  general directions.

One question I am thinking about is how adding methods and fields to a class effects performance?
Is it better or worse using property with getter and setter then a simple value member? The latter would seem to be the more efficient solution, but with Javascript and DOM it may well be the  oposite or no difference at all.

Cheers,
Leslie
Fri, May 25 2012 5:13 AMPermanent Link

Leslie

Tim.

An other performance question: I am dealing with controls reacting to mouse events (MouseOver ...) I can see it in your code that  you are setting THTMLElement.className  so  the state information (eg the images for Tchekbox) is stored in css. Obviously this makes themes possible. But the question is if this supposed to be  faster or slower compared to setting Control backgroundImage or  TImageImage.ImageName?

Cheers,
Leslie
Image