# Distributed: Passing views of an array for read access to workers (using pmap)

**URL:** <https://discourse.julialang.org/t/distributed-passing-views-of-an-array-for-read-access-to-workers-using-pmap/109379>\
**Category:** General Usage\
**Tags:** question, performance, parallel, distributed, views\
**Created:** [January 29, 2024, 7:55am UTC](https://discourse.julialang.org/t/distributed-passing-views-of-an-array-for-read-access-to-workers-using-pmap/109379 "2024-01-29T07:55:20Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![james](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@james](https://discourse.julialang.org/u/james)\
**Post date:** [January 29, 2024, 2:31pm UTC](https://discourse.julialang.org/t/distributed-passing-views-of-an-array-for-read-access-to-workers-using-pmap/109379/5 "2024-01-29T14:31:21Z")

</div>

Thank you, that does help. Using the DistributedArrays package (and the `[:L]` as you suggested), I could now make it run. There still seems to be a performance issue, but the bottle neck seems to be the number of allocations; I will mark this thread as solved (the distributed arrays did the trick) and open a new one with using (a) distributed arrays and (b) highlighting the memory allocation problem.

---

_[View the full topic](https://discourse.julialang.org/t/distributed-passing-views-of-an-array-for-read-access-to-workers-using-pmap/109379)._
