From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.devel Subject: Re: Redisplay: NS port, high CPU load Date: Thu, 9 Jun 2016 16:11:58 +0200 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 Content-Type: multipart/alternative; boundary=001a11c03b146122270534d90177 X-Trace: ger.gmane.org 1465481794 3938 80.91.229.3 (9 Jun 2016 14:16:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2016 14:16:34 +0000 (UTC) Cc: Alan Third , Emacs-Devel devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 09 16:16:30 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 1bB0l0-0006QQ-Tg for ged-emacs-devel@m.gmane.org; Thu, 09 Jun 2016 16:16:27 +0200 Original-Received: from localhost ([::1]:34805 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB0kz-0003PR-L4 for ged-emacs-devel@m.gmane.org; Thu, 09 Jun 2016 10:16:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB0gm-0008GR-JQ for emacs-devel@gnu.org; Thu, 09 Jun 2016 10:12:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bB0gh-0000d8-O7 for emacs-devel@gnu.org; Thu, 09 Jun 2016 10:12:03 -0400 Original-Received: from mail-vk0-x22e.google.com ([2607:f8b0:400c:c05::22e]:36406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB0gh-0000d2-JM for emacs-devel@gnu.org; Thu, 09 Jun 2016 10:11:59 -0400 Original-Received: by mail-vk0-x22e.google.com with SMTP id g67so56464867vkb.3 for ; Thu, 09 Jun 2016 07:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9FFf6yMJZ8MBdFV7gfPQlHLTP7aDPNgwbhsiEfue3NA=; b=y4tyeTvIyYfDG0/hFa08aMMro2c6R7q0VYzFK/2XU997+QaFaB7GZAtDdfHSwXfZRb L62OopxGIs/ObXndqN6A/HN+ZcTKsAPM5f/M/bDOe+J37RHht9J3nPFOCOTFsw+V8Tp4 PvjAnOJV2qOVUHY35ByWs3MgoXJDPa2JWMZHkgbdxOSsXWqrXXPQyNYerpz3kZM1myEn brwgnlrUPqGk5sDoXVCg2RXv7Wk7fQ/XK2N78TzrKCtYeRIWnqYY/hfjTu/af1LduTCf mrGlbdAJjk7QyZj3EFVWFyGr/AVvYB4TZTz44oiWRf9gIKijkw0eosBo5x32Axzux/Iw h3XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9FFf6yMJZ8MBdFV7gfPQlHLTP7aDPNgwbhsiEfue3NA=; b=l3ZewEr3RCUZG4SXWYFYlu1cLig+4r6PP/PDLPX6Ht7dhUmLg44cs3mIMB6WLGTpI5 H62nehXdQ/jswAEeQ9VaqozKJ15VNuYRWcCqWKHO8OLF6dFl+ifiIz5b69SUjv5cf6Ee To+BAWGY7SDvH8w+OByJ4Wrn/YHGN4uL1kDy7I6Q5b5GPmbJQgf6BY7zQTydZ/oO9ArY YeJBNKHGZ4ZL74M4dMkYGM4XKEQCaE6hq/Ifk3O+YCubFrYBgvM0mjtR/snPLsuB34dx PSAWXle2IFWeUOy6E+EEY5PXdpEB8V4ayyoYQG5nIDRqQSfE+4EWfjoZMXp8uf7grQc6 kCxg== X-Gm-Message-State: ALyK8tJXqOD+gfmuQXktR2ieP3vJPtbqyZ1f9DfK37TQMYLRHEzJEPVJHoFAPf9Czp7BIo8BEnA8O6ytH+JW7g== X-Received: by 10.31.9.143 with SMTP id 137mr4717787vkj.149.1465481519242; Thu, 09 Jun 2016 07:11:59 -0700 (PDT) Original-Received: by 10.31.216.195 with HTTP; Thu, 9 Jun 2016 07:11:58 -0700 (PDT) In-Reply-To: <41E503B6-5048-4E20-92CE-1FAD4C05A279@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::22e 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:204251 Archived-At: --001a11c03b146122270534d90177 Content-Type: text/plain; charset=UTF-8 > > In any case, we need to understand what triggers the expensive toolbar > update. Try to clear out one of :post-read-conversion and :pre-write-conversion to see which of the two is the culprit. (While you're at it, try to clear out both first just to make sure we're barking up the right tree.) I just saw one suspicious thing: `ucs-normalize-hfs-nfd-pre-write-conversion' change current buffer but doesn't restore it, whereas the post-read function use save-excursion. -- Anders --001a11c03b146122270534d90177 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
In any case, we need to understand what triggers the expensive= toolbar update.

Try to clear out one of :post-= read-conversion and :pre-write-conversion to see which of the two is the cu= lprit. (While you're at it, try to clear out both first just to make su= re we're barking up the right tree.)

I just saw one suspicious t= hing: `ucs-normalize-hfs-nfd-pre-write-conversion' change current buffe= r but doesn't restore it, whereas the post-read function use save-excur= sion.

=C2=A0 =C2=A0 -- Anders

--001a11c03b146122270534d90177--