# Julia integral calculation - community module or own module?

**URL:** <https://discourse.julialang.org/t/julia-integral-calculation-community-module-or-own-module/24278>\
**Category:** General Usage\
**Tags:** gpu, packages\
**Created:** [May 16, 2019, 11:23am UTC](https://discourse.julialang.org/t/julia-integral-calculation-community-module-or-own-module/24278 "2019-05-16T11:23:13Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [May 21, 2019, 11:35am UTC](https://discourse.julialang.org/t/julia-integral-calculation-community-module-or-own-module/24278/9 "2019-05-21T11:35:54Z")

</div>

> [@wiktorkujawa](#):
>
> I don’t know why, but it always(except first run) last about 0.9 s. However when I reduce rtol parameter to very small values it compile longer.

It is hard to say anything about this without a self-contained example.

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

> [@wiktorkujawa](#):
>
> I want to use it in production I need only result value, so it’s waste of time

It is a very cheap operation (using the previous refinement of the algorithm, if I remember correctly).

That said, it is prudent to use it in production too, eg error if the error is above some threshold that your calculations would tolerate.

---

_[View the full topic](https://discourse.julialang.org/t/julia-integral-calculation-community-module-or-own-module/24278)._
