Subject: Re: bug#25654: 24.5; linum and hide-show

From: Eli Zaretskii <[email-masked]>
Date: Wed, 08 Feb 2017 20:33:39 +0200

> From: Abdul-Lateef Haji-Ali <[email-masked]>
> Date: Wed, 8 Feb 2017 17:36:31 +0000
> 
> When working on huge files, it seems that when hide-show collapses a
> large multi-line block, linum still creates hidden overlays for every
> line in the hidden block leading to unresponsive emacs.

Yes.

> To reproduce:
> Create a new file, enable c-mode, hs-minor-mode and
> linum-mode, create a huge block by typing: { C-u 10000 RET } then
> execute hs-hide-all and watch Emacs become unresponsive.

You may wish to try the alternative nlinum-mode, it performs better in
this scenario.