From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: The implementation of `make-string' is in C Date: Tue, 31 Jan 2012 15:06:39 +0100 Message-ID: References: <4F27F0E2.8020605@dogan.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328018816 7492 80.91.229.3 (31 Jan 2012 14:06:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2012 14:06:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Deniz Dogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 31 15:06:53 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RsEMG-00046w-DV for ged-emacs-devel@m.gmane.org; Tue, 31 Jan 2012 15:06:52 +0100 Original-Received: from localhost ([::1]:49116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsEMF-0007YF-FO for ged-emacs-devel@m.gmane.org; Tue, 31 Jan 2012 09:06:51 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsEMB-0007Xr-Tl for emacs-devel@gnu.org; Tue, 31 Jan 2012 09:06:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RsEM6-0004Dh-7N for emacs-devel@gnu.org; Tue, 31 Jan 2012 09:06:47 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:51266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsEM6-0004DU-2t for emacs-devel@gnu.org; Tue, 31 Jan 2012 09:06:42 -0500 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 976121C0C0C8; Tue, 31 Jan 2012 15:06:39 +0100 (CET) X-Auth-Info: ICAgwlIGY3vTl0qHjD+Tyv6EQP05gwDgSbkW9dK5/wU= Original-Received: from igel.home (ppp-88-217-120-178.dynamic.mnet-online.de [88.217.120.178]) by mail.mnet-online.de (Postfix) with ESMTPA id E6C8E1C00043; Tue, 31 Jan 2012 15:06:39 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 501) id 798F1CA29A; Tue, 31 Jan 2012 15:06:39 +0100 (CET) X-Yow: I was in a HOT TUB! I was NORMAL! I was ITALIAN!! I enjoyed th' EARTHQUAKE! In-Reply-To: <4F27F0E2.8020605@dogan.se> (Deniz Dogan's message of "Tue, 31 Jan 2012 14:47:14 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 212.18.0.9 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:148065 Archived-At: Deniz Dogan writes: > Why is `make-string' implemented in C? Why not something like: > > (apply 'string (make-list LENGTH INIT)) That creates a lot of cons garbage. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."