# Speed of vectorized vs for-loops using Zygote

**URL:** https://discourse.julialang.org/t/speed-of-vectorized-vs-for-loops-using-zygote/40556
**Category:** Performance
**Tags:** zygote, tullio
**Created:** [June 1, 2020, 12:40pm UTC](https://discourse.julialang.org/t/speed-of-vectorized-vs-for-loops-using-zygote/40556 "2020-06-01T12:40:17Z")
**Posts on this page:** 1
**Page:** 2

<div class="post-metadata">

### Author: ![mcabbott](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcabbott/32/6603_2.png) [@mcabbott](https://discourse.julialang.org/u/mcabbott)
#### Post date: [June 1, 2020, 9:27pm UTC](https://discourse.julialang.org/t/speed-of-vectorized-vs-for-loops-using-zygote/40556/21 "2020-06-01T21:27:50Z")

</div>

I should probably register it, there’s just one or two more things…

It is in principal possible to copy the function out of the `verbose=2` output above – there is one called Make which is more or less `laplace_for`, and one called `∇Make` which is what `Zygote.@adjoint` wants. But it’s a bit messy (to solve various issues).

[Previous page](https://discourse.julialang.org/t/speed-of-vectorized-vs-for-loops-using-zygote/40556.md?page=1)
