From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Tooltips GC overhead Date: Thu, 30 Jul 2015 08:00:50 +0200 Message-ID: <55B9BD92.1040104@gmx.at> References: <55B7796B.3070005@gmx.at> <55B87E3F.80708@gmx.at> <55B8E367.9020201@cs.ucla.edu> <55B8F3E9.5000707@gmx.at> <55B90321.2000501@cs.ucla.edu> <55B915F9.7040802@gmx.at> <55B942EC.3060308@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1438236076 24475 80.91.229.3 (30 Jul 2015 06:01:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jul 2015 06:01:16 +0000 (UTC) Cc: emacs-devel To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 30 08:01:11 2015 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 1ZKgtu-0005kR-TE for ged-emacs-devel@m.gmane.org; Thu, 30 Jul 2015 08:01:07 +0200 Original-Received: from localhost ([::1]:38050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKgtu-0004Y7-6V for ged-emacs-devel@m.gmane.org; Thu, 30 Jul 2015 02:01:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKgtn-0004Wg-5f for emacs-devel@gnu.org; Thu, 30 Jul 2015 02:01:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKgtl-0003pK-IR for emacs-devel@gnu.org; Thu, 30 Jul 2015 02:00:59 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:55327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKgtl-0003ov-8I for emacs-devel@gnu.org; Thu, 30 Jul 2015 02:00:57 -0400 Original-Received: from [93.82.15.176] ([93.82.15.176]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MFcg9-1Z8GAn2HCP-00Eh8i; Thu, 30 Jul 2015 08:00:56 +0200 In-Reply-To: <55B942EC.3060308@cs.ucla.edu> X-Provags-ID: V03:K0:Wvl1y5Eq0gXavu0FOoihQtyODLzt1PRI/JHlOqKBIWDm3IFvRq9 wbehcarmOTa9y4KOKryzZDE6SrQ8R3uzPfBaXGPoD4lqsgdkaRfCAuLvFNITmuOJdc8BnBM 3aje+jRgIcCIIk/YJb/cZZKwz7qiFZzt0NZb/HZYXnEA2eN2sdqT163wqTavFMAyCrWFVgl xv5RhJZ/5k2fwkM6CGcvw== X-UI-Out-Filterresults: notjunk:1;V01:K0:KztlSEOnZsA=:etWEGrgqRbu/8idwQQPCTu htlURRI2tgmxuUrcden2W5UDTK0R0AtvsTJdgqAMPmXp3c71EZxvhXjfh7M4m0K79+xQRfck1 70lWz/rf3vjEUYvpZnSQmJ6lZtKlrZnxHsLIIDJV7lSg8cTomdu0ti8rlWxbEcOFubXRCzw+x jAbRWfGOcaVDyttEbY3W9vb7bkEx0fl8sybVJw8X5YGTK+g4qpMYdXdNZ/gvS++k+WD95uSFR w6E+S4EXoQkPsGxacLAn8A8JpgvHKydFLCaMEOpoRJ4RZoOac5LwBlMBQJsTQOfC6xYkxxiEZ 5fp/EG/fOJ6O276KknbgNOg+j3RdXjRMGGt+eCC4WVQsQ9C4lxiogRlWjdmkhlW3qVjiz3pWS PG1UbOCBJVcNJM4W42CzVsbe/CE8isUe4j3qmVWEUgmLBcOJYAsCru3DIWX9MtxBHFp61Rlp1 DRqslYHyOKc/mLDE4gYL8A8nFRGNLvNZasvmbUQzSC6QGqgUtYF/Tpg62ku2lyp6bG5kJkfDl EGU58jMNza9nNhQBdnAn0bo9srVRZqGeATln/yoVayY5BIeNUVOskaGN9QQnup+nH62fG10fY CDQcnWIz595F1nFGS1BEFOUqb+Ye0+YXRiU7TnAwlupD3tg9NAcAz74XwUVgyjR5dSfYFzEFA oGGD5bJc6lEvpIqjo1XsVEHy+MCyUbmTHGnAa2mvD4PClMuiSSDnPvpyUnhcevXcUXfo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188183 Archived-At: >> There are one call of `copy-sequence', two calls of `stringp', three of >> `setf', one of `propertize' and one of `selected-frame'. Together these >> would allocate some 20 million bytes? > > That's what it's saying, yes. > >> OTOH the `copy-sequence', `face-attribute' and `alist-get' calls get >> nowhere listed. > > copy-sequence and propertize are in C. Either can easily allocate millions of bytes. Just that `copy-sequence' makes a copy of a three elements alist. And `propertize' usually propertizes a text of a at most hundred characters here. If that function were that expensive, Emcas would be stuck most of the time. > Perhaps face-attribute doesn't allocate storage; that would explain its not being listed. This would make things even more mysterious. > alist-get is in a call to the setf macro and you may need to > investigate what setf is really doing. One way to look into that is > to disassemble the byte code (type "M-x disassemble RET tooltip-show > RET") and see what it does. I suppose running `tooltip-show' interpreted might be the easier way. In any case, neither the profiler nor tooltips appear usable in their current implementation. martin