Re: Application Design Question
Re: Application Design Question
- Subject: Re: Application Design Question
- From: Jens Alfke <email@hidden>
- Date: Fri, 4 Sep 2009 20:26:20 -0700
On Sep 4, 2009, at 4:55 PM, Marek Kozubal wrote:
Another question related to this is what API set provides the
fastest disk IO under Mac OS X? On the windows side I used
FILE_FLAG_NO_BUFFERING and FILE_FLAG_WRITE_THROUGH flags with the
ReadFile/WriteFile API.
The fastest will be the low-level POSIX I/O calls (open / write /
etc.). To disable caching, call fcntl() using the F_NOCACHE operand.
Try to read/write as much as you can in one call -- on the write side,
the writev() function can be very useful. For details you might want
to look into the Big Nerd Ranch "Advanced Mac OS X Programming" book,
or for that matter, any book that covers Unix file I/O in depth.
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden