Live data from Hacker News

Tabs slower than spaces in Firefox

bugzilla.mozilla.org

1–10 of 129 posts

Re: Tabs slower than spaces in Firefox

#5
post #2

From the comments, it looks like there's an "optimization" that kicks in when a function is under 100 characters long. It seems that optimization is backfiring and actually making a tabbed function slower.

Interesting to note that character-based optimizations in JS engines are somewhat common (though this article is a few years old): http://jayconrod.com/posts/54/a-tour-of-v8-crankshaft-the-op...

Re: Tabs slower than spaces in Firefox

#8

I'm going to use this as fodder next time I get into an argument with someone about why spaces are better than tabs when writing code. Or maybe I've just been watching too much silicon valley...

Tabs are the devils puss is a more convincing argument for the religiously motivated Tabs user.

They don't respond to reason. Obviously. /s

Re: Tabs slower than spaces in Firefox

#9
post #7

This is great bug, right up there with the Dwarf Fortress bug that involved a dwarf planting a bed in a farm plot.

Would you be able to link this? I'm interested in reading about it. A quick google for 'dwarf planting a bed in a farm plot bug fortress' turns up nothing relevant at a glance.

Re: Tabs slower than spaces in Firefox

#10

I'm going to use this as fodder next time I get into an argument with someone about why spaces are better than tabs when writing code. Or maybe I've just been watching too much silicon valley...

I thought that was the most unrealistic thing this season: a supposedly genius programmer who loves tabs and hates spaces.
Post reply on HN