aboutsummaryrefslogtreecommitdiff
path: root/src/utility.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-05 13:14:51 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-05 13:14:51 -0700
commitb2c870060073adcbfd4c753cd9e1246769b12ff0 (patch)
treed2205cd8226111227fa473bdc5b734be1eaa5bf5 /src/utility.js
parent045a1ec3138e8a30fa24a9b6d979fdba59d24f47 (diff)
infrastructure to track the costs of outlining, and to possibly change outlining thresholds as we go
Diffstat (limited to 'src/utility.js')
-rw-r--r--src/utility.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utility.js b/src/utility.js
index 9cc8d3a3..7d122cef 100644
--- a/src/utility.js
+++ b/src/utility.js
@@ -312,6 +312,12 @@ function setUnion(x, y) {
return ret;
}
+function setSize(x) {
+ var ret = 0;
+ for (var xx in x) ret++;
+ return ret;
+}
+
function invertArray(x) {
var ret = {};
for (var i = 0; i < x.length; i++) {