home.KaiRo.at
Bio
weBlog
[arts corner]
[science corner]
Slides
Fotogalerien
Kontakt
Suche
>> www.KaiRo.at
Neuer Kommentar
Name:
E-Mail:
Homepage:
Ort:
JavaScript support is required for this form to work.
Berechne:
1 plus 4 ergibt
Titel:
Beitragstext:
[quote="Boris"]So the first issue is that the JIT currently doesn't handle heavyweight functions, and in the object-oriented example the square/dist/add functions are heavyweight because they refer to the outer "complex". I filed <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=452498">bug 452498</a> on this. I tried changing that code to look like this: <pre> var complex_ops = { square : function() { return new complex(this.r * this.r - this.i * this.i, 2 * this.r * this.i); }, dist : function() { return Math.sqrt(this.r * this.r + this.i * this.i); }, add : function(aComplex) { return new complex(this.r + aComplex.r, this.i + aComplex.i); } }; function complex(aReal, aImag) { this.r = aReal; this.i = aImag; } complex.prototype = complex_ops; </pre> and that sped up things, but it also sped up the non-jitted version. It really doesn't make sense to me that this doesn't win out with the jit. I've filed <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=452499">bug 452499</a> on it.[/quote]
Ich akzeptiere und befolge
die Regeln von Home of KaiRo
.
In diesem Eintrag werden
Emoji
,
bbCode
und
manche HTML-Codes
unterstützt.