November 22, 2002

TiVo Simulator Plugged

I found the memory leak in the C++ version of the TiVo Nation simulator. In Perl I didn't have to worry about the objects that weren't added to the cache, since they would no longer be referenced and automatically garbage collected. Not so, of course, under C++. I had forgot to check if the object was actually added to the cache and if not to specifically delete it. No memory leaks anymore. The simulator is running right now and seems to be using a fixed 672 bytes of memory. In just under 6 minutes, I've gotten over 3MB of data. It would have taken the Perl script an hour or more to generate the same amount.

Posted by josuah at November 22, 2002 10:10 PM UTC+00:00

Trackback Pings

TrackBack URL for this entry:
http://www.wesman.net/cgi-bin/mt/mt-tb.cgi/569

Comments

Post a comment

July 2013
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Search