From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#11822: 24.1; emacsclient terminal mode captures escape characters as text Date: Thu, 24 Sep 2015 21:46:44 +0300 Message-ID: <83oagrirjf.fsf@gnu.org> References: <6eipe9fypj.fsf@just-testing.permabit.com> <415962DC-9BF5-4595-8180-7BE8DB545206@permabit.com> <502427D2.3080003@permabit.com> <83ipcre0fm.fsf@gnu.org> <2AB38709-2307-437E-A242-70B8A358BE4F@permabit.com> <83a9y3dwa8.fsf@gnu.org> <838vdndv9m.fsf@gnu.org> <1341183F-84AB-4257-B28B-57BDE5CA4F20@permabit.com> <83r3m97bzs.fsf@gnu.org> <37C523EE-3D76-40F7-B7B2-99D6F0BD7B97@permabit.com> <83bndc7r5b.fsf@gnu.org> <6ea8swr8ja.fsf@just-testing.permabit.com> <83si6n65ld.fsf@gnu.org> <6e613irc91.fsf@just-testing.permabit.com> <83bnda5lso.fsf@gnu.org> <6ezj0tphtd.fsf@just-testing.permabit.com> <83h9n14e04.fsf@gnu.org> <6esi6kpn4t.fsf@just-testing.permabit.com> <834miv92nm.fsf@gnu.org> <83a8sjreso.fsf@gnu.org> <838u80nm2e.fsf@gnu.org> <83k2rhj67q.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1443120449 26804 80.91.229.3 (24 Sep 2015 18:47:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Sep 2015 18:47:29 +0000 (UTC) Cc: monnier@iro.umontreal.ca, 11822@debbugs.gnu.org To: Ken Raeburn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 24 20:47:13 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 1ZfBXz-0007K9-Ld for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Sep 2015 20:47:11 +0200 Original-Received: from localhost ([::1]:53867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfBXz-00075V-2I for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Sep 2015 14:47:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfBXw-00074y-4s for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2015 14:47:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfBXr-0005zs-4z for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2015 14:47:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfBXr-0005zg-1D for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2015 14:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZfBXq-0000FQ-IA for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2015 14:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Sep 2015 18:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11822 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11822-submit@debbugs.gnu.org id=B11822.1443120406932 (code B ref 11822); Thu, 24 Sep 2015 18:47:02 +0000 Original-Received: (at 11822) by debbugs.gnu.org; 24 Sep 2015 18:46:46 +0000 Original-Received: from localhost ([127.0.0.1]:42114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfBXa-0000Ex-7v for submit@debbugs.gnu.org; Thu, 24 Sep 2015 14:46:46 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:53867) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfBXX-0000Em-ED for 11822@debbugs.gnu.org; Thu, 24 Sep 2015 14:46:44 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NV700B002SBJ500@a-mtaout22.012.net.il> for 11822@debbugs.gnu.org; Thu, 24 Sep 2015 21:46:42 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NV700BAH2TTBS80@a-mtaout22.012.net.il>; Thu, 24 Sep 2015 21:46:42 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il 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: 208.118.235.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:106882 Archived-At: > In this run, I recorded over 601000 bytes being allocated; about 60% of that (~364000) was done from things called by parse_single_submenu; about half of that (~185000), in turn, was via larger_vector called from ensure_menu_items. The largest of those was a single allocation of 62000 bytes. There were several more of these calls, with smaller sizes, and varying in the nesting depth of single_menu_item and friends. Can you show the backtrace from the 62000-byte allocation? > 39104 bytes across 2444 allocations with the Lisp backtrace: set-face-attribute apply face-spec-reset-face face-spec-recalc face-set-after-frame-default x-create-frame-with-faces PVEC_COMPILED@0x121eac8 apply frame-creation-function make-frame make-frame-command funcall-interactively call-interactively command-execute > > 36288 bytes across 2268 allocations with the Lisp backtrace: append apply face-spec-reset-face [… as above] > > 58320 bytes across 3645 allocations via mapcar or the function mapcar applies, called from face-spec-reset-face This face recalculation dance indeed conses a lot. It was the worst offender in my testing. Anyway, I think this is a separate issue, unrelated to the one that is the subject of this bug report.