kjs math_object micro optimization?

David Faure dfaure at trolltech.com
Mon May 19 15:15:05 BST 2003


On Monday 19 May 2003 15:43, Luciano Montanaro wrote:
> 14:05, lunedì 19 maggio 2003, skrev David Faure:
> 
> > I checked those results initially, but not every time we add a new property
> > :) Feel free to commit, but I don't think the Math object is accessed
> > _that_ often, that it will really make any speed difference?
> 
> Ok. I imagined that was the case, but since I am creating a custom javascript
> class I wanted a confirmation. The math class should not be called so often
> indeed. It just happened to be the one I tried to create an hash table for,
> and the results puzzled me. Since I don't think the javascript keywords to
> change too soon however, I'd like to commit the following changes to slightly
> reduce the hash table collisions in the kjs directory.

Fine with me.

-- 
David FAURE, faure at kde.org, sponsored by TrollTech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
Qtella users - stability patches at http://blackie.dk/~dfaure/qtella.html




More information about the kfm-devel mailing list