[protobuf] Issue 172 in protobuf: 2.3.0 fails to compile with -Wall -Wextra -Werror

2010-03-08 Thread protobuf
Status: New Owner: ken...@google.com Labels: Type-Defect Priority-Medium New issue 172 by exeonical: 2.3.0 fails to compile with -Wall -Wextra -Werror http://code.google.com/p/protobuf/issues/detail?id=172 My system: Ubuntu 9.04 gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) Errors: include/g

[protobuf] How to compile protobuf using g++ in windows

2010-03-08 Thread Chiang
Hi there, Does anyone know how to compile protobuf using g++ in windows? I have an application that uses protobuf library which I want to get it to run in Windows. I manage to run it on Linux platforms. But I would like to port it to Windows as well. Any help will be much appreciated. Thank you.

Re: [protobuf] How to compile protobuf using g++ in windows

2010-03-08 Thread Kenton Varda
You need to use either Cygwin or MinGW+MSYS. Either of these will be able to run the configure script and make just like on Linux. On Mon, Mar 8, 2010 at 6:08 AM, Chiang wrote: > Hi there, > > Does anyone know how to compile protobuf using g++ in windows? I have > an application that uses proto

Re: [protobuf] Re: Any sample messages/data for optimization out there?

2010-03-08 Thread Evan Jones
On Mar 7, 2010, at 20:36 , Oliver Jowett wrote: Benchmarking benchmarks.GoogleSpeed$SpeedMessage1 with file google_message1.dat Deserialize from byte string: 17471413 iterations in 30.074s; 126.3199MB/s Deserialize from byte array: 17389320 iterations in 30.009s; 125.99868MB/s Deserialize fr

[protobuf] Re: Issue 172 in protobuf: 2.3.0 fails to compile with -Wall -Wextra -Werror

2010-03-08 Thread protobuf
Updates: Status: Accepted Comment #1 on issue 172 by ken...@google.com: 2.3.0 fails to compile with -Wall -Wextra -Werror http://code.google.com/p/protobuf/issues/detail?id=172 GCC ignores warnings in system headers. You can use -isystem in place of -I to make GCC treat an include

Re: [protobuf] Re: Any sample messages/data for optimization out there?

2010-03-08 Thread Kenton Varda
Decoding from a "memory stream" is significantly slower than a byte array. The degree of the difference will depend on the data set. SpeedMessage1 is much smaller than SpeedMessage2, therefore differences in one-time costs in setting up the parser will be more prominent. Of course, different pla

[protobuf] Re: How to compile protobuf using g++ in windows

2010-03-08 Thread Chiang
Hi, thank you for the quick reply. I've just finished compiling using MinGW+MSYS, and the library is now all good for my application. Thank you. Chiang On Mar 8, 4:35 pm, Kenton Varda wrote: > You need to use either Cygwin or MinGW+MSYS.  Either of these will be able > to run the configure scrip

[protobuf] Debugging invalid UTF-8 data

2010-03-08 Thread Franz Allan Valencia See
Good day, I am working on a java application which uses a 3rd party framework called CMeCab-Java. CMeCab-Java has two parts - the Java side & the Cpp side. One way to bridge the two which CMeCab-Java provides is via protobuf (and advantage of this approach over the other bridging approaches is tha

Re: [protobuf] Debugging invalid UTF-8 data

2010-03-08 Thread Kenton Varda
Protocol Buffers are binary data, not text. You can't store them in String (or CharSequence) objects because those are meant only for Unicode text. If CMeCab tries to transfer protobuf messages as Strings then it is, unfortunately, broken. If you want to figure out how you are hitting that log m