From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: struct.el -- a package to encode/decode binary data Date: Fri, 22 Mar 2002 19:35:26 -0700 (MST) Sender: emacs-devel-admin@gnu.org Message-ID: <200203230235.g2N2ZQ401848@aztec.santafe.edu> References: Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1016851572 18973 127.0.0.1 (23 Mar 2002 02:46:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 23 Mar 2002 02:46:12 +0000 (UTC) Cc: storm@cua.dk, emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16obXo-0004vu-00 for ; Sat, 23 Mar 2002 03:46:12 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16obek-0001VW-00 for ; Sat, 23 Mar 2002 03:53:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16obXg-0005cL-00; Fri, 22 Mar 2002 21:46:04 -0500 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16obNk-0004z8-00; Fri, 22 Mar 2002 21:35:48 -0500 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g2N2ZQa00058; Fri, 22 Mar 2002 19:35:26 -0700 (MST) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g2N2ZQ401848; Fri, 22 Mar 2002 19:35:26 -0700 (MST) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: eliz@is.elta.co.il In-Reply-To: (message from Eli Zaretskii on Thu, 21 Mar 2002 16:56:31 +0200 (IST)) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2148 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2148 > Am I right in assuming that aref, aset, and substring are potentially > much slower on a multibyte string than on a unibyte string? If the string holds non-ASCII text, yes. But not in your case, where the ``string'' holds binary data, I think. Multibyte strings are slower in this case. The only case where they are not slower is when the contents are all ASCII. To see the slowdown best, try accessing the string nonlinearly. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel