[erlang-questions] pushing a dict in the constant pool

nox n.oxyde@REDACTED
Mon Jan 24 19:01:21 CET 2011


You may want to use ct_expand:
http://dukesoferl.blogspot.com/2009/08/metaprogramming-with-ctexpand.html

Le 24 janv. 2011 à 18:43, Paolo Negri <paolo.negri@REDACTED> a écrit :

> Dear list,
> 
> I would like to know if there's a way to get a dict to be stored in
> the constant pool
> 
> For a list I would do
> 
> get_useful_list() ->
>  [my, useful, ubiquitous, list]
> .
> 
> But if I would like to have a similar function to get a dict (with up
> to few hundreds entries), how would it look like?
> My reason to look into this is in order to be able to efficiently
> distribute constant and immutable configuration data to thousands of
> processes and provide constant time lookup.
> 
> Thanks for your help.
> 
> Paolo
> 
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
> 


More information about the erlang-questions mailing list