From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Tooltips GC overhead Date: Fri, 07 Aug 2015 13:26:54 -0400 Message-ID: References: <55B7796B.3070005@gmx.at> <55B87E3F.80708@gmx.at> <55B8E367.9020201@cs.ucla.edu> <55B8F3E9.5000707@gmx.at> <833806yld0.fsf@gnu.org> <55B915CE.7070803@gmx.at> <55B94267.5050208@cs.ucla.edu> <55BCA454.6050208@gmx.at> <83egjkv2st.fsf@gnu.org> <83twsfu6b5.fsf@gnu.org> <83si7ztc6y.fsf@gnu.org> <83vbcrqg0x.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438968446 12253 80.91.229.3 (7 Aug 2015 17:27:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2015 17:27:26 +0000 (UTC) Cc: rudalics@gmx.at, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 07 19:27:17 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 1ZNlQI-0004ta-9M for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 19:27:14 +0200 Original-Received: from localhost ([::1]:50085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNlQH-0006QK-OW for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 13:27:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNlQ5-0006QD-6N for emacs-devel@gnu.org; Fri, 07 Aug 2015 13:27:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNlQ4-0000Cc-2B for emacs-devel@gnu.org; Fri, 07 Aug 2015 13:27:01 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:61640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNlPz-00006V-9H; Fri, 07 Aug 2015 13:26:55 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A2FgA731xV//gFNJ1cgxCEAoVVwwsEAgKBPDwRAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEBAQYCAR+LOoUFB4QtBbUEI4QUIoJ4AQEB X-IPAS-Result: A0A2FgA731xV//gFNJ1cgxCEAoVVwwsEAgKBPDwRAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEBAQYCAR+LOoUFB4QtBbUEI4QUIoJ4AQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="159097032" Original-Received: from 157-52-5-248.cpe.teksavvy.com (HELO pastel.home) ([157.52.5.248]) by ironport2-out.teksavvy.com with ESMTP; 07 Aug 2015 13:26:54 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6B1CB61710; Fri, 7 Aug 2015 13:26:54 -0400 (EDT) In-Reply-To: <83vbcrqg0x.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Aug 2015 18:23:10 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:188574 Archived-At: > Without some kind of quantitative criterion, this sounds irrational to > me. Would a 0.001% slow-down be acceptable? How about 0.1%? There > must exist some threshold below which any slow-down can be ignored, > and the question I'm asking is what is that threshold? For a functionality whose usefulness has not been proven, the threshold is 0%. > That something else was a watchpoint put on the variable, followed by > semi-manual computation of the frequency distribution of functions > that caused the watchpoint to fire. That's exactly what a profiler > would have done for me, if it were looking at that variable instead of > counting calls to malloc. I'd welcome a patch which uses such a "sampling watchpoint", since it would even speed up the code by removing the code that counts calls to malloc. Stefan