about summary refs log tree commit diff stats
path: root/channel.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-07-13 22:43:16 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-07-13 22:50:49 -0700
commit77d5b5d658830bd24724f945e0d6ddf6a06adc0e (patch)
tree94c50c0ddfa6d55dc1189d62243ceeacaf783326 /channel.mu
parent84e4ed1ab58d5b34cf92919aedbb15736a7349d9 (diff)
downloadmu-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 'channel.mu')
-rw-r--r--channel.mu6
1 files changed, 3 insertions, 3 deletions
diff --git a/channel.mu b/channel.mu
index 61f0e92b..94cb2521 100644
--- a/channel.mu
+++ b/channel.mu
@@ -2,7 +2,7 @@
 
 recipe producer [
   # produce numbers 1 to 5 on a channel
-  new-default-space
+  local-scope
   chan:address:channel <- next-ingredient
   # n = 0
   n:number <- copy 0:literal
@@ -20,7 +20,7 @@ recipe producer [
 
 recipe consumer [
   # consume and print integers from a channel
-  new-default-space
+  local-scope
   chan:address:channel <- next-ingredient
   {
     # read an integer from the channel
@@ -33,7 +33,7 @@ recipe consumer [
 ]
 
 recipe main [
-  new-default-space
+  local-scope
   chan:address:channel <- new-channel 3:literal
   # create two background 'routines' that communicate by a channel
   routine1:number <- start-running producer:recipe, chan:address:channel