[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12358] branches/particles/source/blender: PointCache functions for physics solvers to store their data in, includes a pointCache modifier that can read and write animation point c

Joe Eagar joeedh at gmail.com
Wed Oct 24 09:15:53 CEST 2007


Alexander Ewering wrote:
> On Tue, 23 Oct 2007, Emil Brink wrote:
>
>   
>> fwrite() is not necessarily equivalent with a system call. It's a C
>> standard library function, which buffers the writes. The library might
>> avoid doing any system calls until you either fflush() or fclose() the
>> file.
>>     
>
> Sure, but still, doing a million nested function calls (and god knows what
> hides behind the particular fwrite() implementation) (and a vertex count of
> one million might even be realistic for physics models) doesn't really sound
> that fast -- especially as a cache is meant for speeding up things, its
> implementation should probably be optimal :)
>
> Not to speak about the fread() loop ...
>
> Alexander Ewering
>
>   
On windows (well mingw at least), fread/fwrite are actually macros that 
point to a system call.  The system call is still buffered though, I 
think.  I don't know how much though.

Joe


More information about the Bf-committers mailing list