YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Memory Churn Whats Causing the Churn

Get Embed Code
13 Languages

Showing Revision 4 created 05/25/2016 by Udacity Robot.

  1. The frequent garbage collection
    events are the result of two things.
  2. Number one, each cell value
    concatenation requires the creation of
  3. a new character array and
  4. this is compounded by it occurring
    in rapid succession within the loop.
  5. So, it's also this one.
  6. Now, you can also confirm this character
    array bloat via allocation tracker.
  7. We're going to go ahead and
  8. improve the code and let's see
    what happens in the next video.