[logback-dev] Protobuf

Ceki Gulcu ceki at qos.ch
Wed Mar 18 21:49:05 CET 2009


Hello Maarten,

It's interesting to learn that protobuf is faster than plain old java 
serialization. Thanks.

How about the size of the stored data? How many bytes does a logging event use 
on average?

Maarten Bosteels wrote:
> Hi,
> 
> No objections at all.
> 
> Looking at my .proto file it's indeed pretty obvious that CallerData and 
> StackTraceElement are quite similar :-)
> http://code.google.com/p/firewood/source/browse/trunk/compare-formats/src/main/java/com/googlecode/firewood/protobuf/logging.proto
> 
> I've done some benchmarking with protobuf (using the Corpus), and it 
> seems to be at least 4 times faster than Java serialization.
> Will soon post the results and the code.
> 
> regards,
> Maarten
> 

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch


More information about the logback-dev mailing list