# Investigate slowness

**URL:** <https://discourse.julialang.org/t/investigate-slowness/68405>\
**Category:** New to Julia\
**Tags:** performance, memory-allocation, arrays\
**Created:** [September 19, 2021, 10:38am UTC](https://discourse.julialang.org/t/investigate-slowness/68405 "2021-09-19T10:38:57Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![freeman](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@freeman](https://discourse.julialang.org/u/freeman)\
**Post date:** [September 19, 2021, 4:57pm UTC](https://discourse.julialang.org/t/investigate-slowness/68405/17 "2021-09-19T16:57:59Z")

</div>

Interestingly, I don’t have JULIA\_NUM\_THREADS on my main user’s env, but my inspecting the julia’s runtime I can see that indeed it’s set to 4. Is that the default somehow? Or maybe it’s in some config file that I’ve edited at some point in the past? I’ve check that I don’t have a `~/.julia/config/startup.jl`, so that’s not it. It’s probably somewhere in Atom settings. But I think you’re on to something.

EDIT: Just checked that when I start Julia from the command line, `JULIA_NUM_THREADS` isn’t set and `Threads.nthreads()` returns 1. So it’s probably Juno/Atom somehow.

EDIT2: This seems to confirm that Juno has this behavior: [How to change the number of threads? - #9 by BeastyBlacksmith](https://discourse.julialang.org/t/how-to-change-the-number-of-threads/6169/9)

EDIT3: Found it. In Juno it’s in Settings \> Julia Options \> number of threads. Set it to 1, re-running

---

_[View the full topic](https://discourse.julialang.org/t/investigate-slowness/68405)._
