[erlang-questions] Performance of matches
Robert Virding
rvirding@REDACTED
Wed Jun 4 22:20:28 CEST 2008
2008/6/4 Richard A. O'Keefe <ok@REDACTED>:
> > On Mon, Jun 2, 2008 at 11:15 PM, Darren New <dnew@REDACTED> wrote:
>
> >
> > Good to know the process dictionary is actually a hashtable, but
> > there's
> > only one per process and they don't nest, so that's pretty limited.
>
> Sure they nest: a key can map to another process and _that_ process has
> another process dictionary. It would be pretty simple to whip up a
> module implementing multi-key hash tables that way.
There is a much easier way to nest them: the value can be a dict, which is a
hash table. :-)
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080604/15b7d723/attachment.htm>
More information about the erlang-questions
mailing list