[Top][All Lists]

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

Re: strfile: new module

From: Simon Josefsson
Subject: Re: strfile: new module
Date: Sun, 28 May 2006 12:22:42 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Bruce Korb <address@hidden> writes:

> It might also be useful to use mmap to load the text, too.

We use mmap GnuTLS's strfile now, but it has had its portability
problems, and I'd like to move to something simpler since this isn't
performance critical.  It is also possible that sometimes the files
are devices, sockets etc, and then mmap doesn't work.  Avoiding the
dependency on mmap, sysconf, stat, etc seems simpler to me.  If
someone is worried about the performance later on, it is possible to
extend it to use mmap when possible.


reply via email to

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