From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Elisp: 8 out of 10 problems] I think the last one! (point) Date: Sun, 11 Aug 2024 08:43:37 +0300 Message-ID: <86wmkniph2.fsf@gnu.org> References: <875xs7zzik.fsf@dataswamp.org> <87y153y8dl.fsf@dataswamp.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23893"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Emanuel Berg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 11 07:44:26 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sd1NR-00064K-UN for ged-emacs-devel@m.gmane-mx.org; Sun, 11 Aug 2024 07:44:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sd1Mk-0007QA-Qt; Sun, 11 Aug 2024 01:43:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sd1Mj-0007Q2-F6 for emacs-devel@gnu.org; Sun, 11 Aug 2024 01:43:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sd1Mi-0000j8-6U; Sun, 11 Aug 2024 01:43:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=hN0yPhQdE1jg92FNhSCOuouVe1TrgXpTVK3U/k74KHM=; b=kHu+Q105Eqkk w/A7uobDRDz8e9mNO3JboTNPlBy6yvljEgDPvrBHJCJoWuvCS5QTfbjaOp8YZqGCjTUQf7vlfwu0j uDpzEgbtX17pWcyu128GkZ0Gc79Ew1EKWrDLVV36f8uKUQcVTrm4ONtJR6KOx79wztxnklsLdTvdR dG7FF83Fyg0Jye8+/EifGr6FJbl3TBxOu6D/j9B4xfUAHJ1pbxwn3wdndRB3bAAymXHJCdrQTxXmx xDXdK5Tl6JU7QGbXEk+Q+bIYoZrn3jCaE3MH+OpfSzZpcXYCX2eTN5gQuVVJv0R4gga6T6P/HpTa9 e1LTkobS4JAgN2/b2ItNoA==; In-Reply-To: <87y153y8dl.fsf@dataswamp.org> (message from Emanuel Berg on Sun, 11 Aug 2024 06:46:14 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322631 Archived-At: > From: Emanuel Berg > Date: Sun, 11 Aug 2024 06:46:14 +0200 > > (tl (format "%c%s%c" cb (make-string xci xb) cb)) > (xl (format "%c%s%c" yb (make-string xci bb) yb)) > (all `(,tl ,@(make-list yci xl) ,tl)) > (str (string-join all "\n"))) > (insert "\n" str)))) This has a disadvantage of consing temporary strings and lists (which will increase memory pressure and trigger GC) instead of inserting the box characters directly into the buffer.