Skip to content

Commit

Permalink
completely removed intern
Browse files Browse the repository at this point in the history
  • Loading branch information
EinsamHauer committed May 24, 2017
1 parent 60a96ee commit 4fd9661
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>net.iponweb.disthene</groupId>
<artifactId>disthene</artifactId>
<packaging>jar</packaging>
<version>0.1.13.iow</version>
<version>0.1.14.iow</version>
<name>disthene</name>
<url>http://maven.apache.org</url>
<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/iponweb/disthene/bean/Metric.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public Metric(String input, Rollup rollup) {
String[] splitInput = input.split("\\s");
// We were interning tenant and path here - we are going to store them all (or almost so) constantly anyhow in multiple places
// In fact this also work for a moderate metrics stream. Once we start receiving 10s of millions different metrics, it tends to degrade quite a bit
// So, leaving this only for tenant
// So, removing all intern calls here
this.key = new MetricKey(
splitInput.length >=4 ? splitInput[3].intern() : "NONE",
splitInput.length >=4 ? splitInput[3] : "NONE",
splitInput[0],
rollup.getRollup(),
rollup.getPeriod(),
Expand Down

0 comments on commit 4fd9661

Please sign in to comment.