From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: Redisplay: NS port, high CPU load Date: Fri, 10 Jun 2016 09:03:23 +1000 Message-ID: References: <9793F9E3-979A-4888-8662-F6E0C27C8B37@gmail.com> <20160608195552.GA66865@breton.holly.idiocy.org> <7B0CAF99-689D-4128-8E33-7D9BA8F1823E@gmail.com> <41E503B6-5048-4E20-92CE-1FAD4C05A279@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1465513452 27609 80.91.229.3 (9 Jun 2016 23:04:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2016 23:04:12 +0000 (UTC) Cc: Alan Third , Emacs-Devel devel To: Anders Lindgren Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 10 01:04:11 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bB8zh-0005EY-Pz for ged-emacs-devel@m.gmane.org; Fri, 10 Jun 2016 01:04:10 +0200 Original-Received: from localhost ([::1]:37521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB8zg-0005fG-Sy for ged-emacs-devel@m.gmane.org; Thu, 09 Jun 2016 19:04:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB8zA-0005f9-Dd for emacs-devel@gnu.org; Thu, 09 Jun 2016 19:03:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bB8z5-0008CI-Co for emacs-devel@gnu.org; Thu, 09 Jun 2016 19:03:35 -0400 Original-Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]:34405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB8z5-0008CB-5f for emacs-devel@gnu.org; Thu, 09 Jun 2016 19:03:31 -0400 Original-Received: by mail-pa0-x230.google.com with SMTP id bz2so17356268pad.1 for ; Thu, 09 Jun 2016 16:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=blEcz8Fik6SolVVEAJDFO6u1K0BzkV2YrhrA/BJWk+I=; b=eiejPvNHWnWspqzO/8lrzCbHCCNWBgsTSVGTfOaUcHCQxZncqxWEquBehHoCWix7te wzqs9ebR+mhIHdHIw8Mg9tywkBh2f0U/FvwZr0OQCHVWgVeIhcJ93QMpVT3NU1igixpg ujDJtdZOXix/nu1sqiK99x8qRoMuTYBtIjWxHziRevJzf/y9Uj+bVD7KeMBaKE+JY4Ff eEmEug17aoXZv2bq6K7jtBWVmSiz6f0EAYDEzBsIorMoUkRmT3Qu/ZWrLWVDqEGDosWJ cN+7sRhn0f8HwnnWgsQpgO1CmkmFo+lwmOR4vPRBNW5x6oOOQV05ruM/TZiZdgdH9W/N Cd9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=blEcz8Fik6SolVVEAJDFO6u1K0BzkV2YrhrA/BJWk+I=; b=XcVc9oxYAqAeKGuHUnlWNL/FAqVugqgM85C3knRq5v/+L6885hpAFLBtzARwzJet6a 63sVC595pmxDGX74mqQYrMjEbZANdw7dSXPyMSSJeH3+nOCKu6ND4hIHZtzj2f2eRiJz bqHYlBmBs8WFKjqeJZRKSH02B10YI7cquMxzmpM73zgHamTMcxmjjLH95PeWBOB86DGy 842Uo+a2maFQIZLl30QdMDfPsUxGIoonL4vaD9UQYFCyDAtM3lAv+wNoI6n0YESxDQ14 fB7BY87sd75BdR/VAjttucMy4qcEU9o8m6Lo8IUV2CkH+oPwEYGyOBsf1wTSSsM7bk8U 2G7A== X-Gm-Message-State: ALyK8tLYnxAP16yqchz36/yXvW72ksWzPkTSo9g1QG0A8g21urY3d5eVzwih1hsKGyV0ig== X-Received: by 10.66.126.179 with SMTP id mz19mr15062929pab.27.1465513410054; Thu, 09 Jun 2016 16:03:30 -0700 (PDT) Original-Received: from [10.1.1.14] (203-206-29-127.dyn.iinet.net.au. [203.206.29.127]) by smtp.gmail.com with ESMTPSA id i65sm12437501pfk.84.2016.06.09.16.03.26 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jun 2016 16:03:28 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3124) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::230 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:204264 Archived-At: On Jun 10, 2016, at 4:52 AM, Anders Lindgren wrote: > (defun ucs-normalize-hfs-nfd-pre-write-conversion (from to) > (ucs-normalize-HFS-NFD-region (point-min) (point-max)) > nil) Yes, that removes the high CPU load, at least for the reproducible case = at hand. > If I remember correctly, the rewrite tried to correct two problems: >=20 > * When deleting a character like "=C3=A4" (which in the HFS file = system is decomposed into "a" and "=C2=A8") the full character should be = deleted. Earlier, when pressing backspace, "=C3=A4" was converted to an = "a=E2=80=9D. I don=E2=80=99t know how to test that, as I don=E2=80=99t know what = deletion of a character means in the context of a filename. > * Completion: If a directory contains files like "=C3=A5=C3=A4=C3=B6.txt= " and "aao.txt", Emacs used to say that "a" was the common start to both = sequences. I verified that your new version works correctly with respect to file = name completion. It looks like this particular issue (30% CPU load) may be addressed. I = don=E2=80=99t know yet whether the 100% CPU load issue is the same, as I = can't reproduce it. Do you want to check in the function above?