<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Can you please wrap the setvbuf in _WIN32 IFDEFs too? Currently
memory usage of FLAC decoding is about 1MB, so this patch is
increasing memory usage tenfold, also for platforms that do not need
this. It is a non-problem on my system anyway.<br>
<br>
<div class="moz-cite-prefix">Op 26-09-14 om 10:36 schreef Janne
Hyvärinen:<br>
</div>
<blockquote cite="mid:54252573.8010506@sci.fi" type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
I made some changes to the previous patch. I don't know why I
originally didn't put the output buffering to piped output too but
that is now moved to cover both file and pipe output.<br>
Additionally this patch informs the Windows filesystem in advance
about the decoded size to eliminate NTFS fragmentation. <br>
<br>
<div class="moz-cite-prefix">On 25.9.2014 23:01, Janne Hyvärinen
wrote:<br>
</div>
<blockquote cite="mid:5424749A.8090102@sci.fi" type="cite">Decoding
flac files is also prone to producing fragmented files. NTFS has
the ability to completely avoid fragmentation if it is told the
file size before hand, but that would require using special
Windows-only functions. Increasing the write buffer from the
default 512 bytes to 10 MB already reduces the problem
tremendously. <br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
flac-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:flac-dev@xiph.org">flac-dev@xiph.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/flac-dev">http://lists.xiph.org/mailman/listinfo/flac-dev</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
flac-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:flac-dev@xiph.org">flac-dev@xiph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/flac-dev">http://lists.xiph.org/mailman/listinfo/flac-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>