# 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:** 4

<div class="post-metadata">

**Author:** ![aplavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aplavin/32/222056_2.png) [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Post date:** [September 22, 2018, 12:05pm UTC](https://discourse.julialang.org/t/trig-functions-very-slow/15335/4 "2018-09-22T12:05:44Z")

</div>

While for this particular case Yeppp does improve the performance (at the cost of almost a gig of memory usage), it was a simplified minimal example. The real target function is much more complicated, uses complex exponentials, and is not easily vectorizable. It sounds like Julia should be well-suited for such applications, but as I see here it performs significantly slower than Python. As I understand, Julia uses a custom implementation of trig functions instead of optimized libraries, can it be the reason?

---

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