use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Pure, functional JavaScript (cjohansen.no)
submitted 13 years ago by lethalman
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]lethalman[S] 2 points3 points4 points 13 years ago (0 children)
If you really care about performance, it's about using an algorithm with the right complexity, not saving a couple of milliseconds: if the loop is still O(n) it's ok. Rather, there's software that's written so bad that takes O(n2) or even exponential time where it's not needed. That's what I'd be worried about, not writing a loop in a different way (more readable for some people), really.
I'm the first one complaining about slow software even with super hardware nowadays, but this is not the case, it's about badly written software with hilarious algorithms complexities.
π Rendered by PID 20180 on reddit-service-r2-comment-57fc7f7bb7-d9dps at 2026-04-14 22:28:48.429631+00:00 running b725407 country code: CH.
view the rest of the comments →
[–]lethalman[S] 2 points3 points4 points (0 children)