# Emacs becoming very slow

**URL:** <https://uzu.lurk.org/t/emacs-becoming-very-slow/2481>\
**Category:** TidalCycles\
**Tags:** questions\
**Created:** [21 November 2020 21:58 UTC](https://uzu.lurk.org/t/emacs-becoming-very-slow/2481 "2020-11-21T21:58:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbutz](https://uzu.lurk.org/user_avatar/uzu.lurk.org/mbutz/32/1085_2.png) [@mbutz](https://uzu.lurk.org/u/mbutz)\
**Post date:** [21 November 2020 21:58 UTC](https://uzu.lurk.org/t/emacs-becoming-very-slow/2481/1 "2020-11-21T21:58:21Z")

</div>

Hi,

my Emacs (using [Centaur Emacs](https://github.com/danielcnorris/centaur-emacs) since a few months) is becoming very slow after coding in Tidal for a while (~ an hour). CPU usage is increasing and it seems to take more RAM. This can get a bit hard to investigate so I just wanted to ask whether this is a somehow known problem with obvious reasons or has happened to anyone here before.

---

<div class="post-metadata">

**Author:** ![mbutz](https://uzu.lurk.org/user_avatar/uzu.lurk.org/mbutz/32/1085_2.png) [@mbutz](https://uzu.lurk.org/u/mbutz)\
**Post date:** [22 November 2020 11:55 UTC](https://uzu.lurk.org/t/emacs-becoming-very-slow/2481/2 "2020-11-22T11:55:29Z")

</div>

Well... learned that using the profiler in Emacs is a good thing (`M x profiler-start`).

I had a snippet running to always have the last output line of the `*tidal*` visible which involved `buffer-tail`. This turned out to cause heavy CPU load after a while.

---

<div class="post-metadata">

**Author:** ![mbutz](https://uzu.lurk.org/user_avatar/uzu.lurk.org/mbutz/32/1085_2.png) [@mbutz](https://uzu.lurk.org/u/mbutz)\
**Post date:** [30 January 2022 15:34 UTC](https://uzu.lurk.org/t/emacs-becoming-very-slow/2481/3 "2022-01-30T15:34:26Z")

</div>

Hi,

since quite a while my Emacs again (or still? I don't know because this a completely new installation) will pause while editing Tidal code. Sometimes It seems to be linked to using the backspace key. I have filed an issue on the [Github haskell-mode](https://github.com/haskell/haskell-mode/issues/1770) project hoping that an Emacs profiler output might track the error down for the initiated ones.

Does anyone can report the same or a similar behaviour? Any hints to how I might be able to resolve this or at least get more specific information maybe to update the mentioned issue on Github?

(I am using a Thinkpad Yoga 1. Gen, 16 MB RAM, Intel Core i7-6600U CPU @ 2.60GHz × 2 with Linux Mint 20.3 Cinnamon and Emacs 27.1.; tidal-mode is tidal-20210211.1531 and haskell-mode is haskell-mode-20210908.1543 - if that is some crucial information)

Thanks!

---

<div class="post-metadata">

**Author:** ![iii](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/i/ecb155/32.png) [@iii](https://uzu.lurk.org/u/iii)\
**Post date:** [31 January 2022 15:20 UTC](https://uzu.lurk.org/t/emacs-becoming-very-slow/2481/4 "2022-01-31T15:20:39Z")

</div>

yeah, my emacs freezes when evaluating lines. in my experience the more lines i eval, the longer the freeze gets… i’ve had this problem on debian, arch, and osx.

i’m afraid i don’t have any fixes

---

<div class="post-metadata">

**Author:** ![mbutz](https://uzu.lurk.org/user_avatar/uzu.lurk.org/mbutz/32/1085_2.png) [@mbutz](https://uzu.lurk.org/u/mbutz)\
**Post date:** [31 January 2022 16:08 UTC](https://uzu.lurk.org/t/emacs-becoming-very-slow/2481/5 "2022-01-31T16:08:42Z")

</div>

Yes, exactly. Furthermore my impression is: the longer I am in Tidal mode and work with it, the slower Emacs becomes... Thanks for confirming!

So, if I may ask, what editor are you using instead?

---

<div class="post-metadata">

**Author:** ![iii](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/i/ecb155/32.png) [@iii](https://uzu.lurk.org/u/iii)\
**Post date:** [31 January 2022 18:01 UTC](https://uzu.lurk.org/t/emacs-becoming-very-slow/2481/6 "2022-01-31T18:01:01Z")

</div>

i’m still using emacs!

while the problem is annoying it doesn’t make tidal unusable until ~90 mins or so on my machine, and i don’t often have it running that long.

i don’t know much about emacs or debugging it but i might take a crack at figuring this out. ill post any findings 🙂
