about summary refs log tree commit diff stats
path: root/counters.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 /counters.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 'counters.mu')
-rw-r--r--counters.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/counters.mu b/counters.mu
index 713c8fa8..2d57943d 100644
--- a/counters.mu
+++ b/counters.mu
@@ -8,7 +8,7 @@ recipe new-counter [
 ]
 
 recipe increment-counter [
-  new-default-space
+  local-scope
   0:address:array:location/names:new-counter <- next-ingredient  # setup outer space; it *must* come from 'new-counter'
   x:number <- next-ingredient
   n:number/space:1 <- add n:number/space:1, x:number
@@ -16,7 +16,7 @@ recipe increment-counter [
 ]
 
 recipe main [
-  new-default-space
+  local-scope
   # counter A
   a:address:array:location <- new-counter 34:literal
   # counter B