]> git.cworth.org Git - apitrace/commitdiff
Make Snappy compression/decompression the default
authorZack Rusin <zack@kde.org>
Sat, 6 Aug 2011 23:06:56 +0000 (19:06 -0400)
committerZack Rusin <zack@kde.org>
Sat, 6 Aug 2011 23:06:56 +0000 (19:06 -0400)
It's about 10x faster!

trace_parser.cpp
trace_writer.cpp

index ebb6f077b6c786185a133725f86be8e111177526..d53d62ce9e73258c851d112f4fe764f130138769 100644 (file)
@@ -39,7 +39,7 @@ namespace Trace {
 
 
 Parser::Parser() {
-    file = new Trace::ZLibFile;
+    file = new Trace::SnappyFile;
     next_call_no = 0;
     version = 0;
 }
index a615960474d48b522d8d5606c1290451bd7868d5..bc2ee6ce9e8850ed5511bea89b8880531a6252c1 100644 (file)
@@ -42,7 +42,7 @@ namespace Trace {
 Writer::Writer() :
     call_no(0)
 {
-    m_file = new Trace::ZLibFile;
+    m_file = new Trace::SnappyFile;
     close();
 }