Commit Graph

2134 Commits

Author SHA1 Message Date
Jean-Baptiste Queru
d7af73ccec Merge commit 'remotes/korg/cupcake' into merge 2009-03-17 17:37:28 -07:00
Jon Skeet
7a66a6d3f4 Benchmark data update. 2009-03-05 23:28:32 +00:00
jonathan.skeet
90bdae226e Update benchmark data. 2009-03-05 23:16:14 +00:00
Jon Skeet
7de1aef848 Avoid creating UnknownFieldSets unless we really have to. 2009-03-05 14:23:17 +00:00
Jon Skeet
75f4268e60 Minor benchmarking changes 2009-03-05 14:22:28 +00:00
Jon Skeet
6678a73b0d For some reason the build file didn't get pushed last time 2009-03-05 13:26:31 +00:00
Jon Skeet
bceed3c198 Commit earlier deletes 2009-03-05 13:22:15 +00:00
Jon Skeet
ae87cf6e5c Moved benchmarking code around 2009-03-05 11:11:57 +00:00
jonathan.skeet
8604c745fc Added copyright notice, made constants constant, added GC call before each test. 2009-03-05 11:10:35 +00:00
jonathan.skeet
ff9c9e4d93 Initial benchmarking. 2009-03-05 11:00:49 +00:00
The Android Open Source Project
82155ace01 auto import from //depot/cupcake/@135843 2009-03-03 19:30:31 -08:00
The Android Open Source Project
778b51ced8 auto import from //depot/cupcake/@135843 2009-03-03 18:28:35 -08:00
The Android Open Source Project
a3cc5f1795 auto import from //depot/cupcake/@132589 2009-03-03 14:04:14 -08:00
The Android Open Source Project
bb7bbd7c9c auto import from //depot/cupcake/@137055 2009-03-02 22:54:29 -08:00
Jon Skeet
e81a9d7c87 Added ToBuilder and WeakToBuilder 2009-02-24 16:50:56 +00:00
The Android Open Source Project
52067f67ad auto import from //branches/cupcake/...@132276 2009-02-19 10:57:31 -08:00
Jon Skeet
25a28580a6 Support packed primitive types 2009-02-18 16:06:22 +00:00
The Android Open Source Project
f83a870b18 auto import from //branches/cupcake/...@130745 2009-02-10 15:43:59 -08:00
kenton@google.com
1556623fad Submit files missing from previous submit. 2009-02-10 17:47:02 +00:00
Jon Skeet
0ca3fecfaf Use atomic groups to mimic the possessive quantifier change in Java code 2009-01-27 14:56:10 +00:00
Jon Skeet
6a60ac33d0 String optimisations 2009-01-27 14:47:35 +00:00
Jon Skeet
49fcd4f794 Merge extensions correctly 2009-01-27 14:43:10 +00:00
Jon Skeet
642a8140c8 Setters/adders now throw ArgumentNullException appropriately. 2009-01-27 12:25:21 +00:00
Jon Skeet
25a2792283 Remove extraneous conversion to byte string 2009-01-27 07:20:53 +00:00
kenton@google.com
2d6daa72ab Push out changes from internal codebase.
All Languages
* Repeated fields of primitive types (types other that string, group, and
  nested messages) may now use the option [packed = true] to get a more
  efficient encoding.  In the new encoding, the entire list is written
  as a single byte blob using the "length-delimited" wire type.  Within
  this blob, the individual values are encoded the same way they would
  be normally except without a tag before each value (thus, they are
  tightly "packed").

C++
* UnknownFieldSet now supports STL-like iteration.
* Message interface has method ParseFromBoundedZeroCopyStream() which parses
  a limited number of bytes from an input stream rather than parsing until
  EOF.

Java
* Fixed bug where Message.mergeFrom(Message) failed to merge extensions.
* Message interface has new method toBuilder() which is equivalent to
  newBuilderForType().mergeFrom(this).
* All enums now implement the ProtocolMessageEnum interface.
* Setting a field to null now throws NullPointerException.
* Fixed tendency for TextFormat's parsing to overflow the stack when
  parsing large string values.  The underlying problem is with Java's
  regex implementation (which unfortunately uses recursive backtracking
  rather than building an NFA).  Worked around by making use of possesive
  quantifiers.

Python
* Updated RPC interfaces to allow for blocking operation.  A client may
  now pass None for a callback when making an RPC, in which case the
  call will block until the response is received, and the response
  object will be returned directly to the caller.  This interface change
  cannot be used in practice until RPC implementations are updated to
  implement it.
2009-01-22 01:27:00 +00:00
Jon Skeet
dc254e76fc Removed redundant import from tutorial proto 2009-01-21 14:55:14 +00:00
Jon Skeet
a376734115 Changed benchmark namespace and fixed enum issue 2009-01-16 18:06:56 +00:00
Jon Skeet
79c72a9930 Benchmarking 2009-01-16 13:19:31 +00:00
Jon Skeet
343d9f54b4 Upgraded to protoc.exe 2.0.3. Added new build target of clean-build 2009-01-16 11:52:44 +00:00
Jon Skeet
8f8186a30b Benchmarking, dumping and munging 2009-01-16 10:57:40 +00:00
pesho.petrov
87e64e1cee Adding slicing support for repeated scalar fields and get/delete slice for composite fields. 2008-12-24 01:07:22 +00:00
Jon Skeet
0c89aa1fdb Move package declaration 2008-12-15 10:58:48 +00:00
Jon Skeet
b8b7d4fca3 Remove ugly bootstrapping - we don't need it now. 2008-12-15 10:58:12 +00:00
kenton@google.com
d41578239c Update trunk version to 2.0.4-SNAPSHOT. 2008-12-05 22:04:06 +00:00
kenton@google.com
2f3d8de767 Submit script used to post-process dist files. 2008-12-05 18:05:46 +00:00
kenton@google.com
25bc5cdc9c Support "Solaris 10 using recent Sun Studio".
Patch from Monty Taylor <monty.taylor@gmail.com>.
2008-12-04 20:34:50 +00:00
kenton@google.com
1ea526879c Add full-system test for custom enum value options. (Previously, only a
parsing test in parser_unittest.cc existed.)
2008-12-02 20:08:45 +00:00
kenton@google.com
2f669cbe75 * Avoid using pushd/popd in generate_descriptor_proto.sh because they are
bash-only features, and /bin/sh is not a symlink to bash on all systems.
* If an input file is a Windows absolute path (e.g. "C:\foo\bar.proto") and
  the import path only contains "." (or contains "." but does not contain
  the file), protoc incorrectly thought that the file was under ".", because
  it thought that the path was relative (since it didn't start with a slash).
  This has been fixed.
2008-12-02 05:59:15 +00:00
kenton@google.com
eb241fadf2 Fix call to superclass.__init__() to work on newer versions of Python. 2008-12-02 02:33:13 +00:00
kenton@google.com
a001ed0c03 * Update version compatibility stuff -- 2.0.3 is in no way compatible with
2.0.2.
* Minor Tru64 fix.
2008-12-01 23:47:49 +00:00
kenton@google.com
9f1752889c Update CHANGES.txt with stuff from 2.0.3. 2008-11-25 19:37:10 +00:00
Jon Skeet
3f22511100 Added address book example 2008-11-24 16:09:39 +00:00
Jon Skeet
828510cdbd Refactor IsInitialized to match Java version 2008-11-24 11:17:17 +00:00
Jon Skeet
4cf9e3c619 Fix property special-casing 2008-11-24 11:11:28 +00:00
kenton@google.com
26bd9eee6e Integrate changes from internal code.
protoc
* Enum values may now have custom options, using syntax similar to field
  options.
* Fixed bug where .proto files which use custom options but don't actually
  define them (i.e. they import another .proto file defining the options)
  had to explicitly import descriptor.proto.
* Adjacent string literals in .proto files will now be concatenated, like in
  C.

C++
* Generated message classes now have a Swap() method which efficiently swaps
  the contents of two objects.
* All message classes now have a SpaceUsed() method which returns an estimate
  of the number of bytes of allocated memory currently owned by the object.
  This is particularly useful when you are reusing a single message object
  to improve performance but want to make sure it doesn't bloat up too large.
* New method Message::SerializeAsString() returns a string containing the
  serialized data.  May be more convenient than calling
  SerializeToString(string*).
* In debug mode, log error messages when string-type fields are found to
  contain bytes that are not valid UTF-8.
* Fixed bug where a message with multiple extension ranges couldn't parse
  extensions.
* Fixed bug where MergeFrom(const Message&) didn't do anything if invoked on
  a message that contained no fields (but possibly contained extensions).
* Fixed ShortDebugString() to not be O(n^2).  Durr.
* Fixed crash in TextFormat parsing if the first token in the input caused a
  tokenization error.

Java
* New overload of mergeFrom() which parses a slice of a byte array instead
  of the whole thing.
* New method ByteString.asReadOnlyByteBuffer() does what it sounds like.
* Improved performance of isInitialized() when optimizing for code size.

Python
* Corrected ListFields() signature in Message base class to match what
  subclasses actually implement.
* Some minor refactoring.
2008-11-21 00:06:27 +00:00
kenton@google.com
a2a32c2043 Support HP C++ on Tru64.
Patch (mostly) by Vincent Choinière <Choiniere.Vincent@hydro.qc.ca>.
2008-11-14 17:29:32 +00:00
Jon Skeet
1d131c98f0 New options now work fine. 2008-11-13 22:29:48 +00:00
Jon Skeet
d6343be707 Refactored options 2008-11-12 23:39:44 +00:00
kenton@google.com
8da400ed12 Fix bugs in zero_copy_stream_impl.
Patch from Frank Chu.
2008-11-07 18:38:13 +00:00
kenton@google.com
32d0c3b853 Only build tests when running "make check", not "make". 2008-11-07 18:06:24 +00:00