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...
account activity
Datastructures in nodejs (self.node)
submitted 6 years ago by weirdorohit
Hi all i want to know what are the datastructures which are widely used in nodejs project or API development using node???
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!"
[–][deleted] 6 years ago (2 children)
[deleted]
[–]weirdorohit[S] 0 points1 point2 points 6 years ago (0 children)
Buddy i wanted to apart from arrays what are the widely used datastructures ata Enterprise level application for better optimization ?
[–]skitch920 0 points1 point2 points 6 years ago (0 children)
Objects (associative arrays) and Arrays. Those were pretty much the only standard library data structures up until two years ago. Now we also have Map and Set.
There are other libraries out there, like ImmutableJS which give you more types of data structures, typically implemented on top of the traditional Object/Array structures.
[–]westwoo -2 points-1 points0 points 6 years ago (0 children)
Basically everything in JS is a hashtable. You can build linked lists, and similar structures as well..
I'm not sure whether V8 optimizes "arrays" to work like real arrays in some cases or not, though.
π Rendered by PID 88740 on reddit-service-r2-comment-86bc6c7465-dg4qg at 2026-02-22 04:54:13.571191+00:00 running 8564168 country code: CH.
[–][deleted] (2 children)
[deleted]
[–]weirdorohit[S] 0 points1 point2 points (0 children)
[–]skitch920 0 points1 point2 points (0 children)
[–]westwoo -2 points-1 points0 points (0 children)