From 77d5b5d658830bd24724f945e0d6ddf6a06adc0e Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 13 Jul 2015 22:43:16 -0700 Subject: 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. --- counters.mu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'counters.mu') 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 -- cgit 1.4.1-2-gfad0