File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 123
123
(defn- keyvals-stats [coll]
124
124
(when (instance? Map coll)
125
125
(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 )))))
132
131
133
132
(defn- tuples-stats [^Iterable coll]
134
133
(when (list-of-tuples? coll)
174
173
(defn can-analyze?
175
174
" Simple heuristic: we currently only analyze collections (but most of them)."
176
175
[object]
177
- (instance? java.util.Collection object))
176
+ (or (instance? List object)
177
+ (instance? Map object)))
You can’t perform that action at this time.
0 commit comments