You are not logged in.

#1 2009-07-16 20:27:32

mindfall
Member
From: berlin
Registered: 2007-07-03
Posts: 57

Firefox: Turning off JIT makes it faster?

With respect to the recently found vulnerability I decided to turn off Firefox's dynamic JS compiler, and suddenly Firefox feels a lot faster and snappier to me. Weird.

So, In about:config/*jit*,  what does False actually mean? Does it mean "JIT off" or rather "JIT not off" (I switched it to False)?
How do I find out it it's on or off?

Last edited by mindfall (2009-07-16 20:28:19)

Offline

#2 2009-07-16 20:49:38

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Firefox: Turning off JIT makes it faster?

false means the JIT is turned off.
firefox 'feels' a bit slower for me, but not too bad. However, I noticed that the cpu usage on JS heavy sites is quite a bit higher, and firefox seems to 'pause' once in a while on such sites.

Last edited by cactus (2009-07-16 20:50:41)


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2009-07-16 20:50:25

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: Firefox: Turning off JIT makes it faster?

If it is true, then it is on, and vise-versa.  And it looks like Cactus beat me to the punch.

Last edited by Wintervenom (2009-07-16 20:51:00)

Offline

#4 2009-07-16 20:56:55

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Firefox: Turning off JIT makes it faster?

the punch was good, like koolaid with some vodka thrown in.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#5 2009-07-17 00:45:14

mindfall
Member
From: berlin
Registered: 2007-07-03
Posts: 57

Re: Firefox: Turning off JIT makes it faster?

Thanks, I guess false==!off would have really been stupidly counterintuitive tongue
Anyway, it's weird. I ran Sunspider benchmark and with JIT on it would - as expected - be ~2.5 times faster.
Yet still I get those little delays and micro-freezes when browsing, making it feel faster without JIT neutral

Offline

#6 2009-07-17 20:32:29

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: Firefox: Turning off JIT makes it faster?

That's not surprising. Interpreting code is faster than compiling it. Without the compiler, the browser can launch into running the code right away. If it compiles it first, that means a lag. Of course, if you run the same section of code over and over the compilation cost is absorbed by the decreased run time. You'd hope that the JIT only took the time to compile things that needed it... but maybe it doesn't. Or maybe it does. But there are reasons that it could introduce a lag at times. Haven't noticed any lag myself.

Last edited by pauldonnelly (2009-07-17 20:33:45)

Offline

#7 2009-07-18 21:21:13

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Firefox: Turning off JIT makes it faster?

Some pages are .... well too overloaded with stuff that doesn't matter just to make them look a bit shinny. I guess it is a problem of how things are done with firefox that makes it slow down but firefox is worthless without web pages so ... I would say firefox isn't the only one to blame.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB