News for hackers. Stuff that matters.
Re:In spite of an increase in Internet speed, webpage speeds... by john-shaffer on Tuesday August 04, 2020 @11:14PM (#24056933)
> I'll just use a list for everything: the users will eat the slowdown

"Premature optimization is the root of all evil." You often should use a list until you've identified a specific performance issue. The list isn't the problem. Not actually optimizing is.

Re:In spite of an increase in Internet speed, webpage speeds... by account42 on Wednesday August 05, 2020 @04:37AM (#24058537)
Choosing the right data structures and algorithms is not premature optimization.
Re:In spite of an increase in Internet speed, webpage speeds... by john-shaffer on Wednesday August 05, 2020 @10:37AM (#24061243)
I agree if you know, e.g., that the list is going to contain thousands of items or is going to be iterated over in your inner loop. That's not premature optimization, that's just common sense. Hence the qualifier "premature".
Re:In spite of an increase in Internet speed, webpage speeds... by pdimitar on Wednesday August 05, 2020 @07:35AM (#24059638)
> You often should use a list until you've identified a specific performance issue.

Identifying a JS performance issue is something that almost no company ever does unless revenue is obviously threatened (and even then many fail to act). So IMO it pays off to do a little bit of premature optimization in JS land.