how to hold lists

Yani Dzhurov yani.dzhurov@REDACTED
Fri May 12 09:56:24 CEST 2006


Hi guys,

 

I need to have some kind of global variables where to hold a couple of
lists. Also need them to process them pretty often by thousand of processes.

How would it better and faster to hold them:

-as macros 

-define(LIST1, [a,b,c,...]).

 

or have a function which returns it

 

get_list1()-> [a,b,c,..].

 

I have about 5-6 lists with about 50 atoms each.

Is there any better approach? 

 

10x, 

 

yani

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060512/03a5ed00/attachment.htm>


More information about the erlang-questions mailing list