You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2019/04/15 14:00:52 UTC
[incubator-iotdb] branch instrumentation_for_hashmap updated: skip
few usage of hashmaps
This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch instrumentation_for_hashmap
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/instrumentation_for_hashmap by this push:
new f08451e skip few usage of hashmaps
f08451e is described below
commit f08451ee67468baeaea07c70348a7598a5e4665e
Author: 江天 <jt...@163.com>
AuthorDate: Mon Apr 15 21:59:38 2019 +0800
skip few usage of hashmaps
---
.../main/java/org/apache/iotdb/tsfile/expr/HashMapInstrumentor.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tsfile/src/main/java/org/apache/iotdb/tsfile/expr/HashMapInstrumentor.java b/tsfile/src/main/java/org/apache/iotdb/tsfile/expr/HashMapInstrumentor.java
index 947877c..abc0fd7 100644
--- a/tsfile/src/main/java/org/apache/iotdb/tsfile/expr/HashMapInstrumentor.java
+++ b/tsfile/src/main/java/org/apache/iotdb/tsfile/expr/HashMapInstrumentor.java
@@ -25,6 +25,9 @@ public class HashMapInstrumentor {
long tot = 0;
for (Entry<Class, AtomicLong> entry : newCounter.entrySet()) {
long count = entry.getValue().get();
+ if (count < 100) {
+ continue;
+ }
stringBuilder.append(entry.getKey().getSimpleName()).append(":").append(count).append("\n");
tot += count;
}