Re: "Lite" mode is in SVN -- mostly

2009-08-03 Thread Kenton Varda
On Sat, Aug 1, 2009 at 4:42 AM, Jon Skeet wrote: > Out of interest Kenton, does this make the bootstrapping code simpler? > I'd imagine that can be built with just a "lite" version. It would be > nice to get rid of some of the nastiness that's involved in C# just to > get the PB-specific types to

Re: "Lite" mode is in SVN -- mostly

2009-08-01 Thread Jon Skeet
On Jul 29, 3:50 am, Kenton Varda wrote: > I just committed the new "lite mode" refactoring for C++ and Java to SVN. > To use the new feature, add this line to your .proto file: >   option optimize_for = LITE_RUNTIME; > This will cause protoc to generate code which is just as fast as with > optimi

Re: "Lite" mode is in SVN -- mostly

2009-07-31 Thread Kenton Varda
On Wed, Jul 29, 2009 at 3:41 PM, ijuma wrote: > Is there a way to disable this behaviour? As you say, it doesn't seem > particularly useful for sophisticated JVMs and unless I am missing > something, the queue is currently unbounded so it could end up > retaining quite a bit of memory for some us

Re: "Lite" mode is in SVN -- mostly

2009-07-29 Thread ijuma
On Jul 29, 7:15 pm, Kenton Varda wrote: > I think that touched java_message.cc in the compiler -- grep for > "QuickQueue". Thanks Kenton. >  It's an entirely transparent change -- you do not have to > change your code at all to take advantage of it. Yes, I understand. I was just curious about

Re: "Lite" mode is in SVN -- mostly

2009-07-29 Thread Kenton Varda
On Tue, Jul 28, 2009 at 7:50 PM, Kenton Varda wrote: > C++, as measured by the "size" command on Linux: > libprotobuf.so: 948k > libprotobuf-lite.so: 148k > libprotobuf-lite.so with extension_set.cc removed: 91k > I just shaved another 23k off the lite library by eliminating use of strutil

Re: "Lite" mode is in SVN -- mostly

2009-07-29 Thread Kenton Varda
On Wed, Jul 29, 2009 at 2:14 AM, ijuma wrote: > On Jul 29, 3:50 am, Kenton Varda wrote: > > I just committed the new "lite mode" refactoring for C++ and Java to SVN. > > Thanks, that sounds useful. I noticed another change in the > Changes.txt: > > "Put Builder objects on a freelist after build(

Re: "Lite" mode is in SVN -- mostly

2009-07-29 Thread Gregory Kick
I'll try to get to this by the end of the week. On Tue, Jul 28, 2009 at 9:50 PM, Kenton Varda wrote: > I just committed the new "lite mode" refactoring for C++ and Java to SVN. > To use the new feature, add this line to your .proto file: >   option optimize_for = LITE_RUNTIME; > This will cause p

Re: "Lite" mode is in SVN -- mostly

2009-07-29 Thread ijuma
Hi Kenton, On Jul 29, 3:50 am, Kenton Varda wrote: > I just committed the new "lite mode" refactoring for C++ and Java to SVN. Thanks, that sounds useful. I noticed another change in the Changes.txt: "Put Builder objects on a freelist after build() is called, so they may be reused later." Sin

"Lite" mode is in SVN -- mostly

2009-07-28 Thread Kenton Varda
I just committed the new "lite mode" refactoring for C++ and Java to SVN. To use the new feature, add this line to your .proto file: option optimize_for = LITE_RUNTIME; This will cause protoc to generate code which is just as fast as with optimize_for = SPEED, but lacks descriptors, reflection, U