]> source.dussan.org Git - sonarqube.git/commitdiff
Improve micro-benchmark of Externalizable
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 3 Feb 2015 18:39:57 +0000 (19:39 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 3 Feb 2015 18:40:46 +0000 (19:40 +0100)
microbenchmark-template/src/main/java/org/sonar/microbenchmark/SerializationBenchmark.java

index c392d7cf841c55f677258cfca5c35b6528870434..6957fa1f403022329453abe86d5a9455fedea325 100644 (file)
@@ -147,10 +147,10 @@ public class SerializationBenchmark {
 
     @Override
     public void writeExternal(ObjectOutput out) throws IOException {
-      out.writeObject(uuid);
-      out.writeObject(severity);
-      out.writeObject(message);
-      out.writeObject(author);
+      out.writeBytes(uuid);
+      out.writeBytes(severity);
+      out.writeBytes(message);
+      out.writeBytes(author);
       out.writeInt(line);
     }