This actually depends on how much are you going to use them. Few thousands objects are probably ok, but millions will slow down GC significantly.
Cheers, Fedor. On Mon, Oct 22, 2012 at 9:52 PM, Nathan Rajlich <[email protected]>wrote: > I've only really used it for testing and tracking down memory leaks, > but I know that "hook.io" has used it as a dependency in the past, and > that "dnode" does currently. What exactly is your use case? > > On Mon, Oct 22, 2012 at 9:52 AM, Diogo Resende <[email protected]> > wrote: > > You could use ES6 WeakMaps. > > > > > https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/WeakMap > > > > -- > > Diogo Resende > > > > On Monday, October 22, 2012 at 17:05 , Fredrik O wrote: > > > > Hi, > > > > Does anyone know if it is safe, for performance reasons to heavily use > the > > npm module: "node-weak" and similar libraries? Does it add significant > > overhead? > > > > > > Thanks in advance > > > > -- > > 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 > > > > > > -- > > 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 > > -- > 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 > -- 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
