Feedback Post your code and let's compare 

Forum: Com Sci 12500, U Chicago, Autumn 2002, Discuss Classwork
Re: News Project step #4, deadline Monday 25 November (Mike O'Donnell)
Re: More Provocative timings of tristream multiplication (Mike O'Donnell)
Re: Question Interesting that you run out of memory... (Benedict Singer)
Date: 2002, Nov 24
From: Mike O'Donnell <odonnell@cs.uchicago.edu>

Why not post your code, and we can all try to figure it out?

Aside from the space question, I'm very curious whether you get similar timings to mine.

Space usage is a bit subtle in a language, such as Scheme, with automatic storage managment. It seems unlikely that map-stream is a big space eater, but it's possible that it is optimized to do certain common cases faster at the cost of wasting space. It's also possible that I had more space tied up in something other than the multiplication, so that I ran out sooner even though multiplication was using about the same amount.

The way to track this down is to take one of our versions and transform it into the other one small step at a time, seeing which step makes the difference.




Mike O'D.


Messages

1. More Two code versions and test results by Benedict Singer, 2002, Nov 24
1. More stream-map is probably not the culprit by Mike O'Donnell, 2002, Nov 24
2. More add_xreal and sub_xreal appear not to be the problem by Mike O'Donnell, 2002, Nov 24
3. More mult_power_3_xreal appears not to be the problem by Mike O'Donnell, 2002, Nov 24
4. News ruled out internal defines, define vs. letrec; mult_xreal_lt_one the culprit by Mike O'Donnell, 2002, Nov 24
5. Question Problem with global variables inherited in a recursive procedure? by Mike O'Donnell, 2002, Nov 24

to: "Post your code and let's compare"