From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs memory management and sluggishness Date: Thu, 01 Aug 2019 05:43:14 +0300 Message-ID: <83zhkthagt.fsf@gnu.org> References: <87k1c44n7y.fsf@telefonica.net> <83d0hwm0fc.fsf@gnu.org> <87ef2b4pti.fsf@telefonica.net> <83sgqrlim1.fsf@gnu.org> <8736ir3uj0.fsf@telefonica.net> <83imrmlw7y.fsf@gnu.org> <86blxakjrc.fsf@phe.ftfl.ca> <87ef25rhiu.fsf@telefonica.net> <8636illum6.fsf@phe.ftfl.ca> <87a7ctrgn2.fsf@telefonica.net> <86y30dkfgl.fsf@phe.ftfl.ca> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="87021"; mail-complaints-to="usenet@blaine.gmane.org" Cc: ofv@wanadoo.es, emacs-devel@gnu.org To: Joseph Mingrone Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 01 04:43:54 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ht14M-000MS0-FV for ged-emacs-devel@m.gmane.org; Thu, 01 Aug 2019 04:43:54 +0200 Original-Received: from localhost ([::1]:45590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ht14L-0000pI-Gc for ged-emacs-devel@m.gmane.org; Wed, 31 Jul 2019 22:43:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49218) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ht13s-0000pC-F8 for emacs-devel@gnu.org; Wed, 31 Jul 2019 22:43:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ht13r-0008HL-EH; Wed, 31 Jul 2019 22:43:23 -0400 Original-Received: from [176.228.60.248] (port=2824 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ht13q-0002E4-RA; Wed, 31 Jul 2019 22:43:23 -0400 In-reply-to: <86y30dkfgl.fsf@phe.ftfl.ca> (message from Joseph Mingrone on Wed, 31 Jul 2019 19:27:06 -0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239082 Archived-At: > From: Joseph Mingrone > Date: Wed, 31 Jul 2019 19:27:06 -0300 > Cc: emacs-devel@gnu.org > > > How many pages of those 1200 you viewed? Do you use PDF-Tools or Doc > > View? If you execute `garbage-collect' does the memory go down? > > > I'm asking all this because one of the possibilities is a leak on the > > image handling code. > > I just tried it again and held down 'n' to visit all pages and the > memory stayed under 500 MB. I am using pdf-tools v0.90. I also just > tried with > https://file-examples.com/wp-content/uploads/2017/10/file-example_PDF_1MB.pdf > and the memory stayed under 400 MB. I'm somewhat confident that I > encountered memory issues in an Emacs instance without visiting a PDF > file. What image library is used for that? Is it ImageMagick or is it something else?