[erlang-questions] Sharing data by reference

Yogish Baliga yogishb@REDACTED
Mon Mar 30 01:49:31 CEST 2009


I read in this post

http://www.erlang.org/pipermail/erlang-questions/2009-March/042503.html

that compile time constants are in constant pool and are used by reference in each process. This works well for compile time constants. What about the the run-time constant, for example configuration read from the file. This configuration remains constant through-out the life time of the VM. Is it possible to put that in the constant pool and have a reference to it in each process instead of copying around?

Thanx,
-- baliga

 
"The quality of programmers is a decreasing function of the density of GOTO statements in the programs they produce." - Edsger W. Dijkstra

http://dudefrommangalore.blogspot.com



More information about the erlang-questions mailing list