# Delay Differential Equations Networks with different delay per edge

**URL:** https://discourse.julialang.org/t/delay-differential-equations-networks-with-different-delay-per-edge/69787
**Category:** Modelling & Simulations
**Tags:** diffeq, performance
**Created:** [October 14, 2021, 10:41pm UTC](https://discourse.julialang.org/t/delay-differential-equations-networks-with-different-delay-per-edge/69787 "2021-10-14T22:41:49Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![Ger](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ger/32/23817_2.png) [@Ger](https://discourse.julialang.org/u/Ger)
#### Post date: [October 15, 2021, 4:25pm UTC](https://discourse.julialang.org/t/delay-differential-equations-networks-with-different-delay-per-edge/69787/11 "2021-10-15T16:25:46Z")

</div>

Thanks a lot, Chris!! This fix indeed increases significantly the performance! However it still much less performant than the Python version and scales really badly with the size of the system. For example, for `n = 20` :

```julia
julia> @time solve(prob, MethodOfSteps(BS3()), saveat=0.01, reltol=0, abstol=1e-5)
119.585544 seconds (11.80 M allocations: 1.706 GiB, 3.26% gc time)

```

while in the Python version it takes ~ 0.007 seconds.

My real need is to run it for `n = 180` so I’ll need to improve the performance much more.

---

_[View the full topic](https://discourse.julialang.org/t/delay-differential-equations-networks-with-different-delay-per-edge/69787)._
