Skip to content

Commit 869f0db

Browse files
[inspect] Allow analytics for all maps
1 parent fa42f26 commit 869f0db

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/orchard/inspect/analytics.clj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,11 @@
123123
(defn- keyvals-stats [coll]
124124
(when (instance? Map coll)
125125
(let [cnt (bounded-count *size-cutoff* coll)]
126-
(when (> cnt 10)
127-
(non-nil-hmap
128-
:cutoff? (when (>= cnt *size-cutoff*) true)
129-
:count cnt
130-
:keys (basic-list-stats (vec (keys coll)) false)
131-
:values (basic-list-stats (vec (vals coll)) false))))))
126+
(non-nil-hmap
127+
:cutoff? (when (>= cnt *size-cutoff*) true)
128+
:count cnt
129+
:keys (basic-list-stats (vec (keys coll)) false)
130+
:values (basic-list-stats (vec (vals coll)) false)))))
132131

133132
(defn- tuples-stats [^Iterable coll]
134133
(when (list-of-tuples? coll)
@@ -174,4 +173,5 @@
174173
(defn can-analyze?
175174
"Simple heuristic: we currently only analyze collections (but most of them)."
176175
[object]
177-
(instance? java.util.Collection object))
176+
(or (instance? List object)
177+
(instance? Map object)))

0 commit comments

Comments
 (0)