[Top][All Lists]

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

Re: Faster binary IO, please?

From: David Kastrup
Subject: Re: Faster binary IO, please?
Date: Thu, 15 Sep 2005 21:14:46 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Mario Lang <address@hidden> writes:

> Through the last 4 years of Emacs Lisp coding, I've come across the need
> to read and/or write binary data from time to time.  Mostly when doing
> network process IO, but recently also reading binary data from a buffer.
> I've managed to solve all obstacles so far, and wrote the necessary
> utility functions to read all sorts of binary data types.  However,
> these tricks in elisp space imply slow code, and since these are IO
> functions, the slowness really counts.  This mail is basically a plea
> for some improvement in Emacs regarding binary IO.  I know we operate
> on textual data 99% of the time, but at times, it is just necessary
> to operate on binary data if one wants to keep Emacs as the wonderful
> and generic working environment that it is.
> Below are all the binary data IO functions I've had to write so far.
> If you could have a look please and:
>  1. possibly suggest a speedup in the functions as they are now
> or
>  2. implement some of them as a primitive in C

Have you taken a look at define-ccl-program?  You could probably do
quite a bit of processing with that.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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