# Julia v0.7: performance regression with terminal printout and/or \`UnicodePlots\`

**URL:** https://discourse.julialang.org/t/julia-v0-7-performance-regression-with-terminal-printout-and-or-unicodeplots/12581
**Category:** Internals & Design
**Created:** [July 22, 2018, 1:49pm UTC](https://discourse.julialang.org/t/julia-v0-7-performance-regression-with-terminal-printout-and-or-unicodeplots/12581 "2018-07-22T13:49:18Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![lucatrv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lucatrv/32/5650_2.png) [@lucatrv](https://discourse.julialang.org/u/lucatrv)
#### Post date: [July 22, 2018, 1:49pm UTC](https://discourse.julialang.org/t/julia-v0-7-performance-regression-with-terminal-printout-and-or-unicodeplots/12581/1 "2018-07-22T13:49:18Z")

</div>

I verified this issue both on Windows 7 and Linux. Printout of a `UnicodePlots` plot is much slower with Julia Nightly than with Julia v0.6. Not sure if the issue is with terminal printout in general, or with `UnicodePlots` in particular. Run the following code to reproduce the issue:

```julia
using UnicodePlots
lineplot(1:100, 1:100)

```

---

<div class="post-metadata">

### Author: ![Raf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raf/32/3383_2.png) [@Raf](https://discourse.julialang.org/u/Raf)
#### Post date: [July 22, 2018, 1:56pm UTC](https://discourse.julialang.org/t/julia-v0-7-performance-regression-with-terminal-printout-and-or-unicodeplots/12581/2 "2018-07-22T13:56:28Z")

</div>

Could be related to this?

[https://github.com/JuliaLang/julia/issues/27381](https://github.com/JuliaLang/julia/issues/27381)

---

<div class="post-metadata">

### Author: ![lucatrv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lucatrv/32/5650_2.png) [@lucatrv](https://discourse.julialang.org/u/lucatrv)
#### Post date: [July 22, 2018, 9:26pm UTC](https://discourse.julialang.org/t/julia-v0-7-performance-regression-with-terminal-printout-and-or-unicodeplots/12581/3 "2018-07-22T21:26:59Z")

</div>

I’m sure it was fast in 0.6.2, and if I remember correctly also in 0.6.3. Moreover it is fast now in 0.6.4. So I guess this is a separate issue.

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [July 22, 2018, 9:38pm UTC](https://discourse.julialang.org/t/julia-v0-7-performance-regression-with-terminal-printout-and-or-unicodeplots/12581/4 "2018-07-22T21:38:21Z")

</div>

Have you fixed all the deprecation warnings?

Try with [https://github.com/Evizero/UnicodePlots.jl/pull/79](https://github.com/Evizero/UnicodePlots.jl/pull/79).

---

<div class="post-metadata">

### Author: ![lucatrv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lucatrv/32/5650_2.png) [@lucatrv](https://discourse.julialang.org/u/lucatrv)
#### Post date: [July 22, 2018, 10:00pm UTC](https://discourse.julialang.org/t/julia-v0-7-performance-regression-with-terminal-printout-and-or-unicodeplots/12581/5 "2018-07-22T22:00:28Z")

</div>

Sorry I did not think that deprecations could be the cause, because `UnicodePlot` printing was slow not only at the first run (showing warnings) but also at the following ones.

I confirm that [https://github.com/Evizero/UnicodePlots.jl/pull/79](https://github.com/Evizero/UnicodePlots.jl/pull/79) fixes this issue.

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [July 22, 2018, 10:03pm UTC](https://discourse.julialang.org/t/julia-v0-7-performance-regression-with-terminal-printout-and-or-unicodeplots/12581/6 "2018-07-22T22:03:22Z")

</div>

> [@lucatrv](#):
>
> because `UnicodePlot` printing was slow not only at the first run (showing warnings) but also at the following ones.

The warnings for the deprecations are only shown once but the work they do (collecting backtraces to see if this warning has already been printed) happens every time.

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [July 23, 2018, 1:30am UTC](https://discourse.julialang.org/t/julia-v0-7-performance-regression-with-terminal-printout-and-or-unicodeplots/12581/7 "2018-07-23T01:30:21Z")

</div>

This. Deprecated functions are super slow all the time. Fix them and you’ll get your performance back. Or if you’re not going to fix them, turn them off entirely with `julia —depwarn=no`

---

<div class="post-metadata">

### Author: ![lucatrv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lucatrv/32/5650_2.png) [@lucatrv](https://discourse.julialang.org/u/lucatrv)
#### Post date: [July 23, 2018, 10:45am UTC](https://discourse.julialang.org/t/julia-v0-7-performance-regression-with-terminal-printout-and-or-unicodeplots/12581/8 "2018-07-23T10:45:12Z")

</div>

Thanks for your hint and sorry for the false alarm.
