diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-07-13 22:43:16 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-07-13 22:50:49 -0700 |
commit | 77d5b5d658830bd24724f945e0d6ddf6a06adc0e (patch) | |
tree | 94c50c0ddfa6d55dc1189d62243ceeacaf783326 /066stream.mu | |
parent | 84e4ed1ab58d5b34cf92919aedbb15736a7349d9 (diff) | |
download | mu-77d5b5d658830bd24724f945e0d6ddf6a06adc0e.tar.gz |
1780 - now we always reclaim local scopes
But still no difference in either memory footprint or in running time. This will teach me -- for the umpteenth time -- to optimize before measuring.
Diffstat (limited to '066stream.mu')
-rw-r--r-- | 066stream.mu | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/066stream.mu b/066stream.mu index d07d99e9..7bdf36a5 100644 --- a/066stream.mu +++ b/066stream.mu @@ -5,7 +5,7 @@ container stream [ ] recipe new-stream [ - new-default-space + local-scope result:address:stream <- new stream:type i:address:number <- get-address result:address:stream/deref, index:offset i:address:number/deref <- copy 0:literal @@ -15,7 +15,7 @@ recipe new-stream [ ] recipe rewind-stream [ - new-default-space + local-scope in:address:stream <- next-ingredient x:address:number <- get-address in:address:stream/deref, index:offset x:address:number/deref <- copy 0:literal @@ -23,7 +23,7 @@ recipe rewind-stream [ ] recipe read-line [ - new-default-space + local-scope in:address:stream <- next-ingredient idx:address:number <- get-address in:address:stream/deref, index:offset s:address:array:character <- get in:address:stream/deref, data:offset @@ -34,7 +34,7 @@ recipe read-line [ ] recipe end-of-stream? [ - new-default-space + local-scope in:address:stream <- next-ingredient idx:number <- get in:address:stream/deref, index:offset s:address:array:character <- get in:address:stream/deref, data:offset |