[RFC] I/O and Buffer Range

Steven Schveighoffer schveiguy at yahoo.com
Fri Jan 17 11:02:02 PST 2014


On Fri, 17 Jan 2014 10:40:02 -0500, Dmitry Olshansky  
<dmitry.olsh at gmail.com> wrote:

> 17-Jan-2014 18:52, Steven Schveighoffer пишет:
>> Keep in mind that a read/write buffered stream *should* exist. It's just
>> that you need to switch how you use the buffer.
>
> I'm doubting that actually. Just use the freaking MM-file directly you'd  
> better off efficiency wise. And there would be no need to switch back  
> and forth. Modern OS use paging subsystem for files anyway (unless  
> opened with O_DIRECT or similar).

Remember we have to support whatever stdio.File does, and I think it does  
support this.

-Steve


More information about the Digitalmars-d mailing list