If all you need is a hash table, there are a lot of hash table C/C++ 
libraries that you could integrate with Node (like 
Judy<http://judy.sourceforge.net/>) 
and there are a few that have already been integrated, like 
https://npmjs.org/package/hashtable (that specifically lives outside of 
v8's memory constraints) as well as quite a few others on npm: 
https://npmjs.org/search?q=hashtable.

> The hash strategy behind the scenes must be interesting

I found this page that describes (at least some of) what's happening behind 
the scenes: https://developers.google.com/v8/design?hl=sv&csw=1#prop_access. 
v8 is creating a new dynamic behind-the-scenes class when you add 
properties. As someone on the v8 users list 
says<https://groups.google.com/forum/#!topic/v8-users/jrw3Eh2cO4U>: 
"in general JS objects in V8 are not optimized to be used as large hash 
tables. Most likely, it would be best to implement your own hash table data 
structure using an array as a backing store instead of using a JS object as 
a hash table".

Best of luck!

-- peter


-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to