Join Simon Allardice for an in-depth discussion in this video Languages and environment issues, part of Foundations of Programming: Code Efficiency.
While this course aims to be as generic…as possible, there are some differences we should pay…attention to about the impact of a language and…environment on what we can expect with memory efficiency.…And the most important is the…distinction between languages with manual memory management.…Where you need to explicitly write statements…to both allocate memory and deallocate it.…And languages with some form of automatic memory management, typically a…garbage collector, where you still need to write statements to create…new objects.…But for the most part, you'll let the language and the run…time take care of tidying those objects up when they're not needed.…
Now Objective-C uses a method called reference counting,…rather than explicitly writing statements to deallocate memory.…Instead, each object has a count, a number.…Number of references to that object.…And when that count reaches 0, the object is then deallocated.…But Objective C is an interesting case,…because these days, it's somewhere in the middle.…A little bit manual, and a little bit automatic.…
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
Foundations of Programming: Refactoring Codewith Simon Allardice1h 44m Intermediate
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.