summaryrefslogtreecommitdiff
path: root/opendc-trace/opendc-trace-wtf
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-09-11 10:52:30 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-09-11 11:23:38 +0200
commitfa08b63bd749e9fbe1a1d04ef2ebd7a86453fa4b (patch)
tree094a4781cfa1835b55985cfe3842389a676b270c /opendc-trace/opendc-trace-wtf
parent83497bd122983c7fc0d5cbbdc80b98d58c50cd75 (diff)
perf(trace): Keep reader state in own class
This change removes the external class that holds the state of the reader and instead puts the state in the reader implementation. Maintaining a separate class for the state increases the complexity and has worse performance characteristics due to the bytecode produced by Kotlin for property accesses.
Diffstat (limited to 'opendc-trace/opendc-trace-wtf')
-rw-r--r--opendc-trace/opendc-trace-wtf/src/main/kotlin/org/opendc/trace/wtf/WtfTrace.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-trace/opendc-trace-wtf/src/main/kotlin/org/opendc/trace/wtf/WtfTrace.kt b/opendc-trace/opendc-trace-wtf/src/main/kotlin/org/opendc/trace/wtf/WtfTrace.kt
index 7eff0f5a..a755a107 100644
--- a/opendc-trace/opendc-trace-wtf/src/main/kotlin/org/opendc/trace/wtf/WtfTrace.kt
+++ b/opendc-trace/opendc-trace-wtf/src/main/kotlin/org/opendc/trace/wtf/WtfTrace.kt
@@ -43,5 +43,5 @@ public class WtfTrace internal constructor(private val path: Path) : Trace {
return WtfTaskTable(path)
}
- override fun toString(): String = "SwfTrace[$path]"
+ override fun toString(): String = "WtfTrace[$path]"
}