I’m working on a notebook here https://gist.github.com/aaowens/0f4ddc74a180bc726d5d9d2290c29b72 to demonstrate parallel value function iteration. I’ve tried it as serial, with threads, pmap, and remote channels.
With this relatively inexpensive task, threads is almost 4x faster than serial, and distributed is about 2x faster. I was surprised that the remote channels version is a little slower than pmap. I anticipated it would be faster since the work functions are continuously running, while pmap launches new functions at each step of the outer loop. However, I don’t have a great understanding of distributed computing. Is there something sub-optimal about what I’ve written?