<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:large">Hi Dave,<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 19, 2020 at 12:14 PM David T. Lewis <<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"> <br>
On Mon, Oct 19, 2020 at 10:17:12AM -0700, Eliot Miranda wrote:<br>
>  <br>
> to be able to evaluate<br>
>     ByteArray new: 8 * 1024 * 1024 * 1024<br>
> and all it takes is a few seconds.  No drama.<br>
> <br>
> Now to see if I can save and restore an 8Gb image with the new non-stdio<br>
> unix file support.<br>
<br>
I might have missed something, but does this mean that you have implemented<br>
file I/O at the file descriptor level as opposed to the FILE* level for<br>
Unix?</blockquote><div><br></div><div class="gmail_default" style="font-size:large">Only for image read/write, not for general file i/o.  Though that shouldn't be difficult and I may get to soon.  But I take Tim's suggestion of grouping the file pointer and the read/write data in one as a good one, and so would like to use pread/pwrite which provide this functionality.</div><div class="gmail_default" style="font-size:large"></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"> I have always wondered which approach would give the best real-world<br>
performance, and my guess was that the approach that Andreas used for the<br>
Windows VM (HANDLE aka file descriptor level) is probably better overall.<br></blockquote><div><br></div><div class="gmail_default" style="font-size:large">Yes, it appears to be faster.  The only complication is having to chunk reads/writes (as happens on Win32 for the same reason) because read/write don't like > 2Gb-1 (the max positive signed 32-bit value). </div><div class="gmail_default" style="font-size:large"></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Dave<br>
</blockquote></div><div><br></div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div></div>