tag:tenfourfox.tenderapp.com,2012-01-07:/discussions/problems/1168-cryptocat-firefox-add-on-insufferably-slow-at-generating-keysTenFourFox: Discussion 2014-05-02T00:44:58Ztag:tenfourfox.tenderapp.com,2012-01-07:Comment/328041062014-05-02T00:33:24Z2014-05-02T00:33:24ZCryptoCat Firefox add-on insufferably slow at generating keys<div><p>It's nothing specific about CryptoCat; it's really anything that
does heavy math in JavaScript. PPCBC is decent at integer math but
has really inefficient floating point code. The old JaegerMonkey
could beat it by several times even with its latency penalty, but
we can't use that anymore. You can get an idea by comparing V8
Crypto in 17 and 24.</p>
<p>The definitive solution is to finish the IonMonkey
implementation, which generates substantially better floating point
JIT code, and unfortunately that's on the back burner until 31 is
ready.</p></div>Cameron Kaisertag:tenfourfox.tenderapp.com,2012-01-07:Comment/328041062014-05-02T00:34:25Z2014-05-02T00:34:25ZCryptoCat Firefox add-on insufferably slow at generating keys<div><p>(Btw, as an "It could be worse" datapoint, try it without any
JIT at all. You'll give up.)</p></div>Cameron Kaisertag:tenfourfox.tenderapp.com,2012-01-07:Comment/328041062014-05-02T00:41:44Z2014-05-02T00:41:45ZCryptoCat Firefox add-on insufferably slow at generating keys<div><p>Okay, cool. It's good to know that it's a known issue, even if
it's a back-burnered one. I guess they're doing some kind of ECC or
something which requires float? Anyway, thanks for the
near-instantaneous response. I tweeted at the Tigerbrew maintainer
and the CryptoCat people so maybe they will comment.</p>
<p>Thanks!</p></div>Gordon Mtag:tenfourfox.tenderapp.com,2012-01-07:Comment/328041062014-05-02T00:44:56Z2014-05-02T00:44:56ZCryptoCat Firefox add-on insufferably slow at generating keys<div><p>It would probably be very difficult for them to avoid float with
numbers requiring a certain level of precision, especially if the
numbers exceed a 32-bit signed integer, even if there were no
decimal portion. There may be some things they can do to improve
it, but they're sort of at the mercy of SpiderMonkey's code
generator.</p></div>Cameron Kaiser