about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-07-20 00:09:21 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-20 00:09:21 -0700
commitc37b575a04e47d7c84e5274b64054902489471a9 (patch)
tree4d72431e67d8878351ea9c886dcecd918a85474f
parent3af52436dfa2ae215ebac201a2a81dc59a6a2d3a (diff)
downloadmu-c37b575a04e47d7c84e5274b64054902489471a9.tar.gz
5425
-rw-r--r--subx/stats.md12
-rwxr-xr-xsubx/translate2
2 files changed, 14 insertions, 0 deletions
diff --git a/subx/stats.md b/subx/stats.md
index a53d4963..90c23e0b 100644
--- a/subx/stats.md
+++ b/subx/stats.md
@@ -9,6 +9,7 @@ apps/hex.subx              1511      144
 apps/pack.subx             7348     1054
 apps/assort.subx           1318      284
 apps/dquotes.subx          2694      497
+apps/survey.subx           4573      998
 
 ## Bytes in executable
 crenshaw2-1               17612     4112
@@ -19,3 +20,14 @@ hex                       22684     4909
 pack                      37316     7825
 assort                    22506     5342
 dquotes                   27186     5849
+survey                    42791    11258
+
+## Translation speed
+
+Emulated:
+  - 35 LoC: 7.5s
+  - 84 LoC: 16.8s
+  - 219 LoC: 43.5s (error after 4/5 phases)
+
+Native:
+  - less than 0.1s for layers 049-052
diff --git a/subx/translate b/subx/translate
index a5194e5b..979c006c 100755
--- a/subx/translate
+++ b/subx/translate
@@ -16,6 +16,8 @@ set -v
 
 build
 
+echo `cat $* |grep -v '^\s*#\|^\s*$' |wc -l` lines
+
 cat $*          |./subx_bin run apps/dquotes  > a.dquotes
 
 cat a.dquotes   |./subx_bin run apps/assort   > a.assort