# Several second delay to process first input with OhMyREPL installed

**URL:** https://discourse.julialang.org/t/several-second-delay-to-process-first-input-with-ohmyrepl-installed/97447
**Category:** Performance
**Tags:** package
**Created:** [April 13, 2023, 8:47pm UTC](https://discourse.julialang.org/t/several-second-delay-to-process-first-input-with-ohmyrepl-installed/97447 "2023-04-13T20:47:15Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pitsianis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pitsianis/32/26588_2.png) [@pitsianis](https://discourse.julialang.org/u/pitsianis)
#### Post date: [April 13, 2023, 8:47pm UTC](https://discourse.julialang.org/t/several-second-delay-to-process-first-input-with-ohmyrepl-installed/97447/1 "2023-04-13T20:47:15Z")

</div>

Running Julia 1.8.5 x86, built by Homebrew on an M2 MBP.

The problem: When I start Julia, the REPL prompt shows normally. But when I type my first input, it takes several seconds before it even appears. After the first input and subsequent delay, all becomes normal.

Confirmation: If I remove OhMyREPL, the initial hesitation goes away.

Background: All this started after I installed the a64 version of Julia, but since Mex.jl and MATLAB.jl failed to build, I reverted to the Intel version of Julia and re-installed all packages.

Thanks in advance for helping.

---

<div class="post-metadata">

### Author: ![albheim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albheim/32/34660_2.png) [@albheim](https://discourse.julialang.org/u/albheim)
#### Post date: [April 14, 2023, 7:37am UTC](https://discourse.julialang.org/t/several-second-delay-to-process-first-input-with-ohmyrepl-installed/97447/2 "2023-04-14T07:37:29Z")

</div>

I have a small delay on first input, maybe half a second, when using OhMyREPL on 1.8, though on 1.9 it is gone.

You could probably also get around it by compiling a custom sysimage with OhMyREPL in it, though my delay was never enough to warrant that for me.  
Though if you have multiple seconds it might be worth it, or just try 1.9 and it might be gone 🙂

---

<div class="post-metadata">

### Author: ![cmarcotte](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@cmarcotte](https://discourse.julialang.org/u/cmarcotte)
#### Post date: [April 14, 2023, 8:17am UTC](https://discourse.julialang.org/t/several-second-delay-to-process-first-input-with-ohmyrepl-installed/97447/3 "2023-04-14T08:17:59Z")

</div>

I have had a number of issues with Homebrew’s recipe for Julia on Apple Silicon (packages failing precompilation, etc.), which is allieved by switching to the official binary (or using the Homebrew cask which pulls the official binary). If you don’t need to build it yourself, I suggest testing the official binary version.

---

<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: [April 14, 2023, 10:10am UTC](https://discourse.julialang.org/t/several-second-delay-to-process-first-input-with-ohmyrepl-installed/97447/4 "2023-04-14T10:10:24Z")

</div>

I think this was caused by upgrading to a new and improevd tokenizer. On the good side, the dealy is completely nonexistent on 1.9. If you want to stick with 1.8 and the delay really annoys you, you can install an older OhMyREPL version. I think 0.5.17 should be ok. You can add it with `pkg> add OhMyREPL@0.15.17` and then you can pin it `pkg> pin OhMyREPL` to prevent it from upgrading.

---

<div class="post-metadata">

### Author: ![pitsianis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pitsianis/32/26588_2.png) [@pitsianis](https://discourse.julialang.org/u/pitsianis)
#### Post date: [April 14, 2023, 4:58pm UTC](https://discourse.julialang.org/t/several-second-delay-to-process-first-input-with-ohmyrepl-installed/97447/5 "2023-04-14T16:58:01Z")

</div>

Downgrading `OhMyREPL` worked. Just in case somebody like me will follow instructions blindly, there is a typo in the version, the command is

```julia
pkg> add OhMyREPL@0.5.17

```

Thank you again.
