In Julia, is it possible to share read-only data structures between 
threads/processes running on different processors, without making a copy of 
the entire data structure for each thread? The data structure I need to 
share isn't of "bit type", so I can't use a SharedArray. And each worker 
needs to read random parts from the full data structure, so I can't use a 
distributed array. I also tried just putting "@parallel" before a for loop, 
whose body accesses the data structure I want to share, but I believe the 
whole data structure gets copied at each iteration. (I could be wrong about 
that, but it's certainly very slow.) Does Julia have some alternative to a 
copy-on-write for sharing data between threads?

Thanks in advance!

--Bob

Reply via email to