From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.bugs Subject: bug#21028: Performance regression in revision af1a69f4d17a482c359d98c00ef86fac835b5fac (Apr 2014). Date: Wed, 15 Jul 2015 15:32:36 +0300 Message-ID: <55A652E4.5000606@yandex.ru> References: <559F9FAF.8090708@live.com> <83egkgb2wo.fsf@gnu.org> <559FF8F6.2060209@live.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1436963603 19584 80.91.229.3 (15 Jul 2015 12:33:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jul 2015 12:33:23 +0000 (UTC) Cc: 21028@debbugs.gnu.org To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 15 14:33:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ZFLsA-0007lv-6q for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jul 2015 14:33:14 +0200 Original-Received: from localhost ([::1]:35766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFLs9-0000cg-IQ for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jul 2015 08:33:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFLs2-0000ba-G3 for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2015 08:33:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFLry-0003jV-44 for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2015 08:33:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFLry-0003jR-14 for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2015 08:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZFLrx-0001Xk-Jg for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2015 08:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jul 2015 12:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21028 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21028-submit@debbugs.gnu.org id=B21028.14369635705906 (code B ref 21028); Wed, 15 Jul 2015 12:33:01 +0000 Original-Received: (at 21028) by debbugs.gnu.org; 15 Jul 2015 12:32:50 +0000 Original-Received: from localhost ([127.0.0.1]:49660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFLrl-0001XC-JQ for submit@debbugs.gnu.org; Wed, 15 Jul 2015 08:32:50 -0400 Original-Received: from forward4l.mail.yandex.net ([84.201.143.137]:57199) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFLri-0001Wr-GQ for 21028@debbugs.gnu.org; Wed, 15 Jul 2015 08:32:47 -0400 Original-Received: from smtp12.mail.yandex.net (smtp12.mail.yandex.net [IPv6:2a02:6b8:0:801:1::11]) by forward4l.mail.yandex.net (Yandex) with ESMTP id 670121441836; Wed, 15 Jul 2015 15:32:38 +0300 (MSK) Original-Received: from smtp12.mail.yandex.net (localhost [127.0.0.1]) by smtp12.mail.yandex.net (Yandex) with ESMTP id BA0DF16A0790; Wed, 15 Jul 2015 15:32:37 +0300 (MSK) Original-Received: from NVIDIA-LTD-Dvintsev-gw.rosprint.net (NVIDIA-LTD-Dvintsev-gw.rosprint.net [195.151.222.97]) by smtp12.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id H4972K3iBz-WamKSe1c; Wed, 15 Jul 2015 15:32:37 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1436963557; bh=jipYCiMGXKCWVGs+lfDSzjtMu/O6bK+8I69wQ7+paFI=; h=Subject:To:References:Cc:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=G+G15WyUtGxwqoMaN5667HTFi1kfE3aePxDNjyeC2QXfHQxdYQX5vkNFszeJpHA25 ygv8MdBuwMdO7pNICyV0Qg+7e22uMVjke4UZJeLl81ApddDO0XMw/EETAhg7R+1UcG lcJJEHmMYdT/N/eF6FwguOeREERq28KRN+DwQdJ4= Authentication-Results: smtp12.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 In-Reply-To: <559FF8F6.2060209@live.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104975 Archived-At: On 07/10/2015 07:55 PM, Cl=C3=A9ment Pit--Claudel wrote: > The figures are very similar to the tests above: with that patch insert= ing 50 lines takes 3 seconds, > and without it it's instantaneous. Thus I think it's safe to say that t= his particular patch is indeed > responsible for the performance regression. But maybe I'm missing somet= hing? As of c40ea1328bb33abaec14f1fc92ac2349b5ee2715, I can't reproduce this is= sue, with your fontset setup from http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21028#17. Cursor moti= on and keyboard/mouse selection are smooth, and CPU/memory usage looks normal. My suggestions are: 1) Re-run your timed tests from http://debbugs.gnu.org/cgi/bugreport.cgi?= bug=3D21028#20 under /usr/bin/time, not time (the latter is a simple shell builtin). /usr/bin/time also shows= memory usage; if "bad" (current) instance consumes more memory than "good" (with reverted change) one, the= re may be nasty GC issue. 2) 3 seconds is large enough to leave the traces in profiled runs. On GNU= /Linux, it may be worth trying to run under perf, both "good" and "bad" cases, and comparing reports. Dmitry