# Trig functions very slow

**URL:** https://discourse.julialang.org/t/trig-functions-very-slow/15335
**Category:** Performance
**Created:** [September 22, 2018, 10:58am UTC](https://discourse.julialang.org/t/trig-functions-very-slow/15335 "2018-09-22T10:58:02Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![improbable22](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/improbable22/32/5464_2.png) [@improbable22](https://discourse.julialang.org/u/improbable22)
#### Post date: [September 22, 2018, 12:31pm UTC](https://discourse.julialang.org/t/trig-functions-very-slow/15335/7 "2018-09-22T12:31:59Z")

</div>

Might this help?

```julia
using Base.Threads
function ft(n=100_000_000)
    rt = zeros(nthreads())
        @threads for i in 0:n-1
            @inbounds rt[threadid()] += sin(i)
    end
    sum(rt)
end

```

No idea the state of multi-threading on Numba… although I presume it is off by default & thus doesn’t explain the difference.

---

_[View the full topic](https://discourse.julialang.org/t/trig-functions-very-slow/15335)._
