# Does Julia's speed get slower over time in REPL?

**URL:** <https://discourse.julialang.org/t/does-julias-speed-get-slower-over-time-in-repl/89066>\
**Category:** Performance\
**Created:** [October 21, 2022, 2:47pm UTC](https://discourse.julialang.org/t/does-julias-speed-get-slower-over-time-in-repl/89066 "2022-10-21T14:47:48Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![tiZ](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tiz/32/211800_2.png) [@tiZ](https://discourse.julialang.org/u/tiZ)\
**Post date:** [October 27, 2022, 4:25am UTC](https://discourse.julialang.org/t/does-julias-speed-get-slower-over-time-in-repl/89066/5 "2022-10-27T04:25:36Z")

</div>

As an additional note, I found the answer in this post. Maybe it is related to a memory allocation/leak in Flux.

> [@Julia slowdown on long running programs with many allocations](https://discourse.julialang.org/t/julia-slowdown-on-long-running-programs-with-many-allocations/63516/6):
>
> Thanks for the responses. There are only a few places to reduce allocations further because most of them happen in the Flux model and gradient calls. I was not able to reliably replicate the exact behavior, but the issue was resolved by adding the line GC.gc(true) after each optimize\_model! call.

---

_[View the full topic](https://discourse.julialang.org/t/does-julias-speed-get-slower-over-time-in-repl/89066)._
