emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Faster binary IO, please?


From: Thien-Thi Nguyen
Subject: Re: Faster binary IO, please?
Date: 15 Sep 2005 16:18:25 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Mario Lang <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]