<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 11/06/2014 11:43 AM, Johnoel Ancheta
wrote:<br>
<br>
No they seemed to be about the same. Point was I could write the
entire buffer <br>
of 4294967304 bytes with one fwrite. So that would fix the
immediate problem.<br>
</div>
<blockquote
cite="mid:CAJMx2XVFOysyEXn1C_TdPxkkG4W-AUJeMUrhb3rjPJok=xjN1w@mail.gmail.com"
type="cite">
<div dir="ltr">Did you find speed improvements?</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Nov 6, 2014 at 9:42 AM, dave
fournier <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:davef@otter-rsch.com" target="_blank">davef@otter-rsch.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>On 11/06/2014 11:23 AM, Johnoel Ancheta wrote:<br>
<br>
I already did a bit of testing. test_write.cpp is the
low level one and test_write2.cpp uses fopen.<br>
<br>
<br>
</div>
<div>
<div class="h5">
<blockquote type="cite">
<div dir="ltr">Yes, this is a good idea. I'll try
changing write functions and compare speeds.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Nov 6, 2014 at
5:59 AM, dave fournier <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:davef@otter-rsch.com"
target="_blank">davef@otter-rsch.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex"><br>
I did a bit of experimenting with writing
large buffers to disk and it appears that<br>
replacing the low level writes with fwrites
and open with fopen etc . permits one<br>
to write large buffers to disk in the code.<br>
<br>
A more interesting solution might be to
optionally add another thread which can write<br>
portions of the buffer to disk as they become
full.
<div>
<div><br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@admb-project.org"
target="_blank">Users@admb-project.org</a><br>
<a moz-do-not-send="true"
href="http://lists.admb-project.org/mailman/listinfo/users"
target="_blank">http://lists.admb-project.org/mailman/listinfo/users</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>