# Slow REPL Start Time

**URL:** <https://forum.canton.network/t/slow-repl-start-time/2497>\
**Category:** App Development\
**Tags:** daml, repl, loadtime\
**Created:** [April 21, 2021, 9:58am UTC](https://forum.canton.network/t/slow-repl-start-time/2497 "2021-04-21T09:58:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![quidagis](https://avatars.discourse-cdn.com/v4/letter/q/dbc845/32.png) [@quidagis](https://forum.canton.network/u/quidagis)\
**Post date:** [April 21, 2021, 9:58am UTC](https://forum.canton.network/t/slow-repl-start-time/2497/1 "2021-04-21T09:58:06Z")

</div>

I have been lurking in the REPL, using Scripts and the start time for my REPL, executed using `daml repl` is anywhere between a slow count of 10-20 everytime. Even after not running any Daml code for a while, and/or a reboot.

Is this non-compliant behaviour?

---

<div class="post-metadata">

**Author:** ![Gary\_Verhaegen](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gary_verhaegen/32/81_2.png) [@Gary\_Verhaegen](https://forum.canton.network/u/Gary_Verhaegen)\
**Post date:** [April 21, 2021, 10:48am UTC](https://forum.canton.network/t/slow-repl-start-time/2497/2 "2021-04-21T10:48:43Z")

</div>

I see comparable startup time. (Closer to 9, but we may not count at the same speed.)

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [April 21, 2021, 10:54am UTC](https://forum.canton.network/t/slow-repl-start-time/2497/3 "2021-04-21T10:54:24Z")

</div>

`daml repl` should be roughly comparable `daml test`. Both of them need to start a JVM process in the background which actually executes your code and those tend to startup relatively slow unfortunately.

We could make the startup asynchronous and have it appear to be started but it will then block if you type code too quickly. probably still a useful improvement though. You’ll subtract the time it takes you to type the command from the time you wait so if you type for 10s you won’t wait at all.

---

<div class="post-metadata">

**Author:** ![quidagis](https://avatars.discourse-cdn.com/v4/letter/q/dbc845/32.png) [@quidagis](https://forum.canton.network/u/quidagis)\
**Post date:** [April 21, 2021, 11:24am UTC](https://forum.canton.network/t/slow-repl-start-time/2497/4 "2021-04-21T11:24:45Z")

</div>

I am from the Antipodes, and we are a little _slower_,  
so fair comment 😀
