From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Faster binary IO, please? Date: 15 Sep 2005 16:18:25 -0400 Message-ID: References: <87oe6ukwcz.fsf@lexx.delysid.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1126815835 20987 80.91.229.2 (15 Sep 2005 20:23:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2005 20:23:55 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 15 22:23:52 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EG0G2-00043B-0o for ged-emacs-devel@m.gmane.org; Thu, 15 Sep 2005 22:22:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EG0G1-0005zv-B3 for ged-emacs-devel@m.gmane.org; Thu, 15 Sep 2005 16:22:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EG0E9-0005Sf-7x for emacs-devel@gnu.org; Thu, 15 Sep 2005 16:21:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EG0E6-0005RG-Fv for emacs-devel@gnu.org; Thu, 15 Sep 2005 16:21:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EG0E5-0005P6-C9 for emacs-devel@gnu.org; Thu, 15 Sep 2005 16:20:57 -0400 Original-Received: from [207.245.121.137] (helo=mail.agora-net.com) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_ARCFOUR_SHA:16) (Exim 4.34) id 1EG0Be-0007nH-5V for emacs-devel@gnu.org; Thu, 15 Sep 2005 16:18:26 -0400 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.34) id 1EG0Bd-00082x-D4; Thu, 15 Sep 2005 16:18:25 -0400 Original-To: Mario Lang In-Reply-To: <87oe6ukwcz.fsf@lexx.delysid.org> Original-Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 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:42966 Archived-At: 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: (info "(elisp) Selecting a Representation") (info "(elisp) Byte Packing") these references are from cvs emacs. i know the latter doesn't exist, and don't know about the former, for released elisp.info pages. > (defun osc-insert-float32 (value) ...) > (defun osc-read-float32 () ...) presently, bindat.el doesn't (yet?) have floating-point support. it would be cool if someone (perhaps you?) were to add that. thi