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: Benchmarking temporary Lisp objects [Was: Re: [RFC] temporary Lisp_Strings] Date: Mon, 08 Sep 2014 09:30:15 -0400 Message-ID: References: <5405BE5D.1090003@yandex.ru> <5405DE8B.4050201@yandex.ru> <5406EC21.4060200@yandex.ru> <5407281C.3090302@cs.ucla.edu> <54073621.2040403@yandex.ru> <540744F5.2010804@cs.ucla.edu> <5407F1B7.6090704@yandex.ru> <5407F4E6.2040809@cs.ucla.edu> <5407FDF4.7020504@yandex.ru> <54086B1A.8070506@yandex.ru> <54087B5E.10402@yandex.ru> <54088D63.8010406@cs.ucla.edu> <54093561.2010507@yandex.ru> <5409630B.6030201@cs.ucla.edu> <540D85E3.5090407@yandex.ru> <540D9AA7.5020205@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410183082 17828 80.91.229.3 (8 Sep 2014 13:31:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2014 13:31:22 +0000 (UTC) Cc: Paul Eggert , Emacs development discussions To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 08 15:31:17 2014 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 1XQz2J-0007Nx-AH for ged-emacs-devel@m.gmane.org; Mon, 08 Sep 2014 15:31:15 +0200 Original-Received: from localhost ([::1]:43372 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQz2I-0002ug-U6 for ged-emacs-devel@m.gmane.org; Mon, 08 Sep 2014 09:31:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQz1W-0002JA-IL for emacs-devel@gnu.org; Mon, 08 Sep 2014 09:30:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQz1O-0004RO-Ci for emacs-devel@gnu.org; Mon, 08 Sep 2014 09:30:26 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:43762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQz1O-0004RK-9j for emacs-devel@gnu.org; Mon, 08 Sep 2014 09:30:18 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s88DUFOb012912; Mon, 8 Sep 2014 09:30:15 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 3514B60BF3; Mon, 8 Sep 2014 09:30:15 -0400 (EDT) In-Reply-To: <540D9AA7.5020205@yandex.ru> (Dmitry Antipov's message of "Mon, 08 Sep 2014 16:01:43 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5058=0 X-NAI-Spam-Version: 2.3.0.9378 : core <5058> : inlines <1261> : streams <1284512> : uri <1811680> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:174084 Archived-At: > ==> 401 GCs, ~29.9s. [...] > it shows 399 GCs and ~29.6s. 1% speedup is not earth shattering, but at least this time it's a real use-case. > Here we just allocate 2 cons cells (32 bytes on a 64-bit system) on stack, > and can see a measurable performance improvement. Indeed this Fadd_text_properties business sucks. We shouldn't allocate any cons cells at all when we set a single property. Stefan