# Starting GLMakie takes very long

**URL:** <https://discourse.julialang.org/t/starting-glmakie-takes-very-long/64106>\
**Category:** Performance\
**Tags:** makie\
**Created:** [July 5, 2021, 8:59pm UTC](https://discourse.julialang.org/t/starting-glmakie-takes-very-long/64106 "2021-07-05T20:59:22Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [July 6, 2021, 1:06pm UTC](https://discourse.julialang.org/t/starting-glmakie-takes-very-long/64106/21 "2021-07-06T13:06:29Z")

</div>

> [@jules](#):
>
> But what common type could `:red` , `"red"` , `RGBAf0(1, 0, 0, 1)` etc have if you don’t immediately convert them?

Why not convert them?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [July 6, 2021, 1:13pm UTC](https://discourse.julialang.org/t/starting-glmakie-takes-very-long/64106/22 "2021-07-06T13:13:00Z")

</div>

It just needs a redesign of a lot of internals to do that, and we’re not sure about the tradeoffs in usability yet

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [July 6, 2021, 1:34pm UTC](https://discourse.julialang.org/t/starting-glmakie-takes-very-long/64106/23 "2021-07-06T13:34:04Z")

</div>

> [@LaurentPlagne](#):
>
> Out of curiosity, how long does it takes to start a Matlab session nowadays ?

Mine (2020b) just took ~12 s. Sometimes it’s a bit faster others a bit slower.

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [July 6, 2021, 1:44pm UTC](https://discourse.julialang.org/t/starting-glmakie-takes-very-long/64106/24 "2021-07-06T13:44:44Z")

</div>

That’s actually the plan for the plot type refactor, but it’s still not super easy. Note that a color can be: a single color, an array of colors… And that’s one of the simpler attributes:

> <https://github.com/JuliaPlots/Makie.jl/blob/48bbb2bb1bfc870f39495b04fcd2904d55366f3f/MakieCore/src/basic_plots/scatter.jl>

---

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [July 6, 2021, 2:15pm UTC](https://discourse.julialang.org/t/starting-glmakie-takes-very-long/64106/25 "2021-07-06T14:15:15Z")

</div>

> [@jules](#):
>
> we’re not sure about the tradeoffs in usability yet

Just a guess, but beside improving the speed of compilation maybe it would also help usability in a way, by making the API more predicable for the user. E.g. “I can give `:red` or `RGBAf0(1, 0, 0, 1)` and I know it’s quickly normalized to `...` and then clearly it makes no difference”.

> [@sdanisch](#):
>
> That’s actually the plan for the plot type refactor

Awesome to hear! 🙂 But yeah I see what you mean, that’s quite some work…

---

<div class="post-metadata">

**Author:** ![rveltz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rveltz/32/2707_2.png) [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Post date:** [July 6, 2021, 3:22pm UTC](https://discourse.julialang.org/t/starting-glmakie-takes-very-long/64106/26 "2021-07-06T15:22:11Z")

</div>

This looks strange to me `anti_aliasing::Bool = :fxaa`

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [July 6, 2021, 4:07pm UTC](https://discourse.julialang.org/t/starting-glmakie-takes-very-long/64106/27 "2021-07-06T16:07:14Z")

</div>

It’s in a very early stage 😃

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [July 6, 2021, 4:30pm UTC](https://discourse.julialang.org/t/starting-glmakie-takes-very-long/64106/28 "2021-07-06T16:30:46Z")

</div>

24 sec on my Win 10 laptop.

---

<div class="post-metadata">

**Author:** ![lazarusA](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lazarusa/32/6571_2.png) [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Post date:** [July 6, 2021, 4:50pm UTC](https://discourse.julialang.org/t/starting-glmakie-takes-very-long/64106/29 "2021-07-06T16:50:22Z")

</div>

GLMakie in M1 with Rosseta it takes 42 seconds to first plot. So, not bad… one can always use that time to explain the problem of `Time to first plot`. 😃 which is less than a minute.

[Previous page](https://discourse.julialang.org/t/starting-glmakie-takes-very-long/64106.md?page=1)
