From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Magit is painfully slow Date: Sat, 29 Dec 2018 11:44:09 -0500 Message-ID: <8736qg9tba.fsf@kyleam.com> References: <87d0pkbyjo.fsf@posteo.net> <8736qg4uhb.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gdHpW-0002aZ-RE for guix-devel@gnu.org; Sat, 29 Dec 2018 11:51:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gdHih-0005DP-GM for guix-devel@gnu.org; Sat, 29 Dec 2018 11:44:20 -0500 Received: from pb-smtp2.pobox.com ([64.147.108.71]:51225) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gdHig-0005AP-FQ for guix-devel@gnu.org; Sat, 29 Dec 2018 11:44:15 -0500 In-Reply-To: <8736qg4uhb.fsf@elephly.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus , Brett Gilio Cc: guix-devel Hello, Ricardo Wurmus writes: [...] > However, after compiling and generating several .po and .texi >> files Magit takes almost a whole minute to open. > > That=E2=80=99s because it=E2=80=99s trying to colorize the diff of thousa= nds of lines of > .po and .texi changes. With the default settings and no cached visibility for the repo, the hunks should not be expanded, so Magit isn't actually coloring/painting them yet. In this case, the processing of these diffs will be slow regardless of whether they are painted and the CLI "git checkout" suggestion is good, but I think the delayed painting is worth noting because users may not realize that their custom visibility settings are making things slower. --=20 Kyle