From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Faster binary IO, please? Date: Fri, 16 Sep 2005 10:03:14 +0900 Message-ID: References: <87oe6ukwcz.fsf@lexx.delysid.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1126832866 735 80.91.229.2 (16 Sep 2005 01:07:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Sep 2005 01:07:46 +0000 (UTC) Cc: mlang@delysid.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 16 03:07:38 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EG4hP-0007cM-7m for ged-emacs-devel@m.gmane.org; Fri, 16 Sep 2005 03:07:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EG4hO-0003ZP-Jp for ged-emacs-devel@m.gmane.org; Thu, 15 Sep 2005 21:07:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EG4eg-00031O-8m for emacs-devel@gnu.org; Thu, 15 Sep 2005 21:04:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EG4eN-0002po-62 for emacs-devel@gnu.org; Thu, 15 Sep 2005 21:04:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EG4eJ-0002p8-1q for emacs-devel@gnu.org; Thu, 15 Sep 2005 21:04:19 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EG4dL-0001g5-6c; Thu, 15 Sep 2005 21:03:19 -0400 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id j8G13F9t012452; Fri, 16 Sep 2005 10:03:15 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id j8G13FFV028054; Fri, 16 Sep 2005 10:03:15 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1EG4dG-0001hG-00; Fri, 16 Sep 2005 10:03:14 +0900 Original-To: Thien-Thi Nguyen In-reply-to: (message from Thien-Thi Nguyen on 15 Sep 2005 16:18:25 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:42972 Archived-At: In article , Thien-Thi Nguyen writes: > Mario Lang writes: >> 1. possibly suggest a speedup in the functions as they are now >> 2. implement some of them as a primitive in C > i suggest making the buffer in which you operate "unibyte", arranging > for the insertion of external data in the buffer (for example, in a > subprocess output handler) to use the `raw-text' character encoding, and > using bindat.el on the buffer for the (un)packing. more info at: Please note that raw-text is not for "binary" data because raw-text does, for instance, CRLF -> LF conversion. Use `binary' (alias of `no-conversion') instead. --- Kenichi Handa handa@m17n.org