about summary refs log tree commit diff stats
path: root/063list.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 /063list.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 '063list.mu')
-rw-r--r--063list.mu6
1 files changed, 3 insertions, 3 deletions
diff --git a/063list.mu b/063list.mu
index b9bc9c53..fd64cfe8 100644
--- a/063list.mu
+++ b/063list.mu
@@ -10,7 +10,7 @@ container list [
 
 # result:address:list <- push x:location, in:address:list
 recipe push [
-  new-default-space
+  local-scope
   x:location <- next-ingredient
   in:address:list <- next-ingredient
   result:address:list <- new list:type
@@ -23,7 +23,7 @@ recipe push [
 
 # result:location <- first in:address:list
 recipe first [
-  new-default-space
+  local-scope
   in:address:list <- next-ingredient
   result:location <- get in:address:list/deref, value:offset
   reply result:location
@@ -31,7 +31,7 @@ recipe first [
 
 # result:address:list <- rest in:address:list
 recipe rest [
-  new-default-space
+  local-scope
   in:address:list <- next-ingredient
   result:address:list <- get in:address:list/deref, next:offset
   reply result:address:list