Re:Firefox 8 for Windows x64: Has 64-bit browsing finally co...
by vasi on Wednesday July 20, 2011 @04:28PM
(#2787281)
x86-64 has many more registers than x86, which can minimize pushing values on the stack, and therefore boosts speed. On 64-bit you can also assume that at least SSE2 is available, which can help optimizations in some cases.
Re:Firefox 8 for Windows x64: Has 64-bit browsing finally co...
by archangel_one on Wednesday July 20, 2011 @06:25PM
(#2787675)
I vaguely recall seeing a Mozilla presentation while back saying that they had gone to using 64 bits to store JS variables even on 32-bit machines - this was faster since doubles then fit directly, but presumably on a 64-bit machine it would get faster again.
Edit: http://hacks.mozilla.org/2011/03/firefox4-performance/ refers to 64-bit NaN boxing and links to the article I was thinking of, but unfortunately that seems to be broken.
Re:Firefox 8 for Windows x64: Has 64-bit browsing finally co...
by danwolff on Wednesday July 20, 2011 @08:18PM
(#2788002)
"NaN-tagging: 64 bit tagged values are used for stack slots and table slots. Unboxed floating-point numbers (doubles) are overlayed with tagged object references. The latter can be distinguished from numbers via the use of special NaNs as tags. It's a remote descendant of pointer-tagging.
[The idea dates back to 2006, but I haven't disclosed it before 2008. Special NaNs have been used to overlay pointers before. Others have used it for tagging later on. The specific layout is of my own devising.]" [1]
[1] http://article.gmane.org/gmane.comp.lang.lua.general/58908
Re:Firefox 8 for Windows x64: Has 64-bit browsing finally co...
by kenjackson on Wednesday July 20, 2011 @08:40PM
(#2788070)
Interesting, but I don't think I fully understand when you'd use it. Why would you need to couple object references with floating-point values?
Re:Firefox 8 for Windows x64: Has 64-bit browsing finally co...
by danwolff on Wednesday July 20, 2011 @09:03PM
(#2788123)
Uneducated conjecture: They're not just any floating points, they are doubles. You need twice the capacity of one (32-bit double) in order to fake 64 bits. I assume that this helps meet the requirements of other pieces being hacked together.
Re:Firefox 8 for Windows x64: Has 64-bit browsing finally co...
by mrsebastian on Wednesday July 20, 2011 @04:00PM
(#2787161)
Yeah, I think that's why its array manipulation performance was slower in the 64-bit version -- but I was very surprised to see that almost everything else was faster.
64-bit web apps... whatever next!
Looking forward to Mozilla's blog on writing high performance 64bit apps. :-)