6 ms·
> This might be one reason why Apples does so well in browser benchmarks (JavaScript numbers are floating-point doubles). Reminder that browsers try to avoid u
by gsnedders 5y ago
> This might be one reason why Apples does so well in browser benchmarks (JavaScript numbers are floating-point doubles).
Reminder that browsers try to avoid using doubles for the Number type, preferring integers with overflow checks. Much of layout uses fixed point for subpixels, too. Using doubles all the time would be a notable perf regression.