JS speed - Konq vs. Mozilla

Koos Vriezen koos.vriezen at xs4all.nl
Wed Aug 21 20:47:14 BST 2002


On Wed, 21 Aug 2002, David Faure wrote:

> On Wednesday 21 August 2002 21:15, Koos Vriezen wrote:
> > On Wed, 21 Aug 2002, Koos Vriezen wrote:
> >
> > > Hmm, it doesn't trigger the SIGVTALRM on my slower box (11/14 s). Will fix
> > > that...
> >
> > ... here it is. Made a KJSCPUGuard class of it
>
> Nice. Although API wise I always prefer explicit methods
> (like start() and stop()) then the constructor and destructor doing clever things,
> which also requires the {} block to properly destroy the object at the right time.
> Just nitpicking for more code clarity ;)

Well, its the way you look at it. The {} block makes it clear non-verbally :)
But ok, I change that. Don't feel like storing timer values in the
object, so they will be arguments of 'start'.

Koos





More information about the kfm-devel mailing list