• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Application Design Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Application Design Question (From: Marek Kozubal <email@hidden>)

  • Prev by Date: Re: Custom Window not receiving "full" shadow
  • Next by Date: Re: Termination notifications in foundation tool?
  • Previous by thread: Application Design Question
  • Next by thread: OpenGL screen captures
  • Index(es):
    • Date
    • Thread