how to hold lists

Yani Dzhurov <>
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? 





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the erlang-questions mailing list