# \[ANN\] Fatou.jl : Easily share Julia fractals

**URL:** <https://discourse.julialang.org/t/ann-fatou-jl-easily-share-julia-fractals/12278>\
**Category:** Community\
**Tags:** package, announcement, plotting, fractal\
**Created:** [July 9, 2018, 5:30pm UTC](https://discourse.julialang.org/t/ann-fatou-jl-easily-share-julia-fractals/12278 "2018-07-09T17:30:04Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Post date:** [December 15, 2018, 5:28pm UTC](https://discourse.julialang.org/t/ann-fatou-jl-easily-share-julia-fractals/12278/13 "2018-12-15T17:28:59Z")

</div>

> [@kristoffer.carlsson](#):
>
> Out of curiosity, what was the timing before type parameters, for running that code?

In this post, I had a comparison of n=1500 grid, which took 19 seconds before, while only taking 0.17 seconds in the new version with the parametric types.

> [@Structs and parametric constructors](https://discourse.julialang.org/t/structs-and-parametric-constructors/18684/14):
>
> Well, I am a german speaker also, but probably not everyone on this website is. What you could do is write a single while loop, which has the if statement inside the condition, as I have done in my code shown above. Amazingly, with this improvement the difference is enormous for larger n, with old definition julia\> newton(:(z^3-1);n=1500)|\>fatou; 19.215167 seconds (65.07 M allocations: 1.817 GiB, 7.66% gc time) However, with new definition julia\> newton(:(z^3-1);n=1500)|\>fatou; 0.175065…

It’s probably due to assigning the `Fatou.Define` object to parallel threads, because the iteration function depends on two `Bool` values in that object and also functions in it, which might become unnecessary now due to the information provided by the parametric type. Now, only the complex number is variable.

---

_[View the full topic](https://discourse.julialang.org/t/ann-fatou-jl-easily-share-julia-fractals/12278)._
