From df4e51eea0609d098d0247a3152c9aa1ba7bc975 Mon Sep 17 00:00:00 2001 From: Johan Oskarsson Date: Wed, 18 Jul 2012 10:22:36 -0700 Subject: [PATCH] Remove the compression and deserializing annotations. They lead to way too many annotations and make it hard to see what is actually going on. Author: @johanoskarsson Fixes #74 URL: https://github.com/twitter/zipkin/pull/74 --- .../com/twitter/zipkin/storage/cassandra/SnappyCodec.scala | 2 -- 1 file changed, 2 deletions(-) diff --git a/zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/SnappyCodec.scala b/zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/SnappyCodec.scala index ddf66108b1a..847fd10a09c 100644 --- a/zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/SnappyCodec.scala +++ b/zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/SnappyCodec.scala @@ -33,7 +33,6 @@ class SnappyCodec[T](codec: Codec[T]) extends Codec[T] { def encode(t: T): ByteBuffer = { Stats.time("snappycodec.compress") { - Trace.record("snappycodec.compress") val arr = Util.getArrayFromBuffer(codec.encode(t)) val compressArr = new Array[Byte](Snappy.maxCompressedLength(arr.length)) val compressLen = Snappy.compress(arr, 0, arr.length, compressArr, 0) @@ -44,7 +43,6 @@ class SnappyCodec[T](codec: Codec[T]) extends Codec[T] { def decode(ary: ByteBuffer): T = { Stats.time("snappycodec.decompress") { - Trace.record("snappycodec.decompress") val arr = Util.getArrayFromBuffer(ary) val uncompressedArr = Snappy.uncompress(arr, 0, arr.length) codec.decode(ByteBuffer.wrap(uncompressedArr))