Join Simon Allardice for an in-depth discussion in this video Strategies for disk I/O, part of Programming Foundations: Code Efficiency.
If you think there's a problem with your disk input and output,…your first order of business, as always, should be go to go measurement.…Using something like fs_usage on the Mac, or Performance Monitor, or…Cis Internals Process Monitor on the PC, or some other profiler.…Now visual profiling tools, here I'm looking at instruments, they'll usually…have a file activity profile as some kind of pre-configured option.…So I'm looking at the file activity across four main…areas, there's general file info of opening…and closing and getting information on a file.…
There's a different section for reads and writes,…for checking or making changes to file permissions and…ownership, and directory operations, but you'll find something…very similar in other profiling tools on other platforms.…So here I'm profiling, starting up the Safari web…browser and using it for a minute or so.…And as you can see most of the disk…activity is right at the beginning, and it settled…down a lot after that.…Switching to something a litte bit more demanding I'm going to…
Learn to choose the right data types, understand the pitfalls of using high-level languages, and decide where to spend your time. Plus, see how the underlying memory management model may have more of an impact than you realize, and what performance issues you can expect working with databases and web services.
- Identifying problems in the code
- Embracing constraints
- Using code analysis tools to measure performance
- Managing memory
- Managing disk-based and network resources
Skill Level Beginner
1. Approaching Efficiency
4. Algorithmic Efficiency
5. Disk-Based and Network Resources
Next steps6m 4s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.