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: [RFC] temporary Lisp_Strings Date: Tue, 02 Sep 2014 13:32:20 -0400 Message-ID: References: <5405BE5D.1090003@yandex.ru> <5405DE8B.4050201@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1409679208 27128 80.91.229.3 (2 Sep 2014 17:33:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2014 17:33:28 +0000 (UTC) Cc: Emacs development discussions To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 02 19:33:21 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 1XOrxG-0001zc-2N for ged-emacs-devel@m.gmane.org; Tue, 02 Sep 2014 19:33:18 +0200 Original-Received: from localhost ([::1]:39460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOrxF-0006Lv-MU for ged-emacs-devel@m.gmane.org; Tue, 02 Sep 2014 13:33:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOrwv-0006Lg-Mj for emacs-devel@gnu.org; Tue, 02 Sep 2014 13:33:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOrwn-0000AS-Fe for emacs-devel@gnu.org; Tue, 02 Sep 2014 13:32:57 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:58130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOrwn-0000AI-9m for emacs-devel@gnu.org; Tue, 02 Sep 2014 13:32:49 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 5623584E83; Tue, 2 Sep 2014 13:32:48 -0400 (EDT) Original-Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id BEA691E5B8A; Tue, 2 Sep 2014 13:32:20 -0400 (EDT) Original-Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id A83ABB40F7; Tue, 2 Sep 2014 13:32:20 -0400 (EDT) In-Reply-To: <5405DE8B.4050201@yandex.ru> (Dmitry Antipov's message of "Tue, 02 Sep 2014 19:13:15 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 132.204.24.67 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:173962 Archived-At: >> Have you made some preliminary measurements (on microbenchmarks) to try >> and see how much speed up we might gain? Given the cost of strlen and >> parse_str_as_multibyte, I'd expect that the best-case benefit might turn >> out to be rather small. > For the moment, I don't have an idea how to benchmark parse_str_as_multibyte > in "near-to-real-use" conditions. I was thinking of benchmarking build_string against alloca_string. Stefan