lua-users home
lua-l archive

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


On Fri, 30 Jan 2004, Reuben Thomas wrote:

> On Fri, 30 Jan 2004, Jay Carlson wrote:
>
> > The file-based implementation is quite competitive, at least on Linux.
>
> Probably mostly because the various levels of buffering code are good.

Yes.  A lot of people have this impression that libc and stdio are
these slow, inefficient hulks that must be avoided for performance.
But in many cases, you have to spend a fair amount of time to do
better than your vendor.  And Linux does a good job of making
temporary files go fast.

(GNU libc includes a memory-backed FILE*; see open_memstream...)

It's a shame that it's painful to get stdio and non-blocking IO to
work right together.

Jay