# How to perform parallel vector addition?

**URL:** <https://discourse.julialang.org/t/how-to-perform-parallel-vector-addition/92122>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [December 26, 2022, 3:47am UTC](https://discourse.julialang.org/t/how-to-perform-parallel-vector-addition/92122 "2022-12-26T03:47:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [December 26, 2022, 3:54am UTC](https://discourse.julialang.org/t/how-to-perform-parallel-vector-addition/92122/2 "2022-12-26T03:54:43Z")

</div>

in general something as simple as adding 2 vectors won’t benefit from multithreading (you’ll be bottle-necked by memory speed). Also, you’ll get roughly 3x better performance from `a .+= b` which will update `a` to have `b` added to it rather than allocate a new array and fill it with the sum.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-perform-parallel-vector-addition/92122)._
