From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.devel Subject: Re: Extremly slow for format & string-join Date: Mon, 01 Apr 2013 14:58:53 +0800 Organization: HFG Message-ID: <1364799533.4639.11.camel@Renee-desktop.suse> References: <1364788801.4639.6.camel@Renee-desktop.suse> <1364793200.4639.10.camel@Renee-desktop.suse> 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 1364799546 30708 80.91.229.3 (1 Apr 2013 06:59:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Apr 2013 06:59:06 +0000 (UTC) Cc: guile-devel@gnu.org To: Daniel Hartwig Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Apr 01 08:59:33 2013 Return-path: Envelope-to: guile-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 1UMYiK-0006WQ-Dm for guile-devel@m.gmane.org; Mon, 01 Apr 2013 08:59:32 +0200 Original-Received: from localhost ([::1]:39801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMYhw-0008Kh-1m for guile-devel@m.gmane.org; Mon, 01 Apr 2013 02:59:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMYhq-0008HJ-DA for guile-devel@gnu.org; Mon, 01 Apr 2013 02:59:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMYhl-0003ZY-81 for guile-devel@gnu.org; Mon, 01 Apr 2013 02:59:02 -0400 Original-Received: from mail-pb0-f50.google.com ([209.85.160.50]:36879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMYhl-0003ZH-2A for guile-devel@gnu.org; Mon, 01 Apr 2013 02:58:57 -0400 Original-Received: by mail-pb0-f50.google.com with SMTP id jt11so1055410pbb.9 for ; Sun, 31 Mar 2013 23:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:subject:from:to:cc:date:in-reply-to :references:organization:content-type:x-mailer:mime-version :content-transfer-encoding; bh=6b4w5Pq6OZC2VgUt+oJ81dEA8azCDTwgj88wbm2d6Cc=; b=w8nAn2dF+zvyfUCJuV4GiXPsgyhIce1HtEzPTZnAW5Y/wPc3YfmJLQtI7xoqYLl/F8 N6jLNTs3n8L7hP6nVU0vE+RmqTlVB7dPW9guYdn/mPcspXy033fu5tqPWKj1eZH0XdKv x5Tv9eZllW+k+f9Tc5LP0HCpQsoSjgC4fvJ3iGbmSFqojkV+CziRgFxq3GN4E7hWuWGi sn3a72YMKVQn3zeoN6Il90/ogLi2wbXi2MjsIhdE6EOsAVhYrGbAx1ukUmMfe7VYJsI7 Ag78r2VtB0+r1yb9vS62+NqT9DQ3LiB0+MydZ3bU+ucMCSZcW9ICmF+aHbHmvzE27Va+ 5xWg== X-Received: by 10.68.76.1 with SMTP id g1mr16440030pbw.12.1364799536260; Sun, 31 Mar 2013 23:58:56 -0700 (PDT) Original-Received: from [147.2.147.112] ([61.14.130.226]) by mx.google.com with ESMTPS id pg7sm12724986pbc.5.2013.03.31.23.58.54 (version=SSLv3 cipher=RC4-SHA bits=128/128); Sun, 31 Mar 2013 23:58:55 -0700 (PDT) In-Reply-To: X-Mailer: Evolution 3.4.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.50 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:16084 Archived-At: On Mon, 2013-04-01 at 13:35 +0800, Daniel Hartwig wrote: > 2013/4/1 Nala Ginrut : > > Anyway, string-join is so slowly beyond my expectation. > > Also note that ‘string-concatenate’ (less general than ‘string-join’) > performs better for the same case, you could use that directly instead > of my prior suggestion for similar results. Especially since you do > not desire the additional delimiter handling of ‘string-join’. > hmm...seems not... --------------------------cut------------------------------ scheme@(guile-user)> (define a (make-list 1000000 "asdfadsfadsf")) scheme@(guile-user)> ,time (define b (apply string-concatenate a)) While executing meta-command: ERROR: Throw to key `vm-error' with args `(vm-run "VM: Stack overflow" ())'. scheme@(guile-user)> ,time (define b (apply string-concatenate (make-list 100000 "sadfadsfaf")) ... ) Aborted --------------------------end------------------------------