From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.devel Subject: NS port: How to debug excessive garbage collection? Date: Wed, 10 Apr 2019 20:27:49 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="109370"; mail-complaints-to="usenet@blaine.gmane.org" To: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 11 05:28:49 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEQOM-000SHw-GO for ged-emacs-devel@m.gmane.org; Thu, 11 Apr 2019 05:28:47 +0200 Original-Received: from localhost ([127.0.0.1]:40927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEQOL-0007xS-D2 for ged-emacs-devel@m.gmane.org; Wed, 10 Apr 2019 23:28:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEQNh-0007x2-AV for emacs-devel@gnu.org; Wed, 10 Apr 2019 23:28:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEQNg-0001ui-9k for emacs-devel@gnu.org; Wed, 10 Apr 2019 23:28:05 -0400 Original-Received: from gateway33.websitewelcome.com ([192.185.145.24]:20850) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hEQNf-0001on-Rx for emacs-devel@gnu.org; Wed, 10 Apr 2019 23:28:04 -0400 Original-Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 27A632F63DA for ; Wed, 10 Apr 2019 22:27:51 -0500 (CDT) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id EQNShOk8diQerEQNSh8JAn; Wed, 10 Apr 2019 22:27:51 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=4oNaCu+5QXJWcPBkBwZgNI68pfsiajOJRNG6emLJnLQ=; b=VB0hNrMvASHeS+tXefaySIjjG/ B57jKBV1UdCIU/4gnSKNwIead6piTB3c8SH1R2z5/6DnpZZsRMEvpRvYjiCKYywbpy2zVs7vhtOhf lY8rjFfYTz1bBqJHBt/+XELyE60cRkxT8qz58JXwDRdKPO7X10Vtpi7ZKqskVix6BiVsxsQbcGrf9 nFeT2kBHxKFaHjHvZ2RAoXwX5ovjQpnzY2K+ccz17Sqw+ftJi0jIggTGyz3xePb5uecqifjjI/arZ B6+pN/dBC43QoIYMaj7vAqiDT7Zm8opTZvKD7ySqS7/StfaPftYvB0pM+ofKga88ni0Jtf7sMkenY G3GqtLnQ==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:58154 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.91) (envelope-from ) id 1hEQNS-0031gR-FL for emacs-devel@gnu.org; Wed, 10 Apr 2019 22:27:50 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1hEQNS-0031gR-FL X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:58154 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 192.185.145.24 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:235267 Archived-At: I am working on feature requests 22873 (multiple fake cursors) and 17684 (crosshairs that track the cursor position). On 04/08/2019, I submitted a proof concept patch to the following bug tracker link that applies to a current version of the master branch as of that date/commit. It works for GUI versions of Emacs on w32, X11 and NS ports: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22873#125 The bulk of my daily workflow is performed on a modified earlier version of the Emacs master branch from 03/28/2016, which uses about 98% of a current version of the display engine (xdisp.c) as of 04/08/2019. The proof concept patches for each version of Emacs (03/28/2016 versus 04/08/2019) are virtually identical. The only major difference is that nsterm.m has undergone significant changes over the past few months to accommodate Mojave users (MacOS). Here is a Youtube link to a screen recording of the 03/28/2016 version of Emacs NS port -- there are virtually no visual pauses whatsoever while I hold down the right arrow key: https://youtu.be/4vTX1YwrfC4 Here is a Youtube link to a screen recording of the 04/08/2019 version of Emacs NS port -- there is a painfully noticeable pause every few characters while I hold down the right arrow key: https://youtu.be/RzkB4HKHR6o The painful garbage collection issues do _not_ plague either the w32 port or the X11 port of Emacs master branch as of 04/08/2019. Q: How should I proceed to debug the excessive garbage collection issue on the NS port? Thanks, Keith