| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
- Using custom URL for types in Any will no longer throw an
InvalidProtocolBufferException in JsonFormat
- Fixes #1128
|
|\
| |
| | |
Shrink ObjC overhead (generated size and some runtime sizes)
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
NOTE: This is a binary breaking change as structure sizes have changed size
and/or order.
- Drop capturing field options, no other options were captured and other mobile
targeted languages don't try to capture this sort information (saved 8
bytes for every field defined (in static data and again in field descriptor
instance size data).
- No longer generate/compile in the messages/enums in descriptor.proto. If
developers need it, they should generate it and compile it in. Reduced the
overhead of the core library.
- Compute the number of has_bits actually needs to avoid over reserving.
- Let the boolean single fields store via a has_bit to avoid storage, makes
the common cases of the instance size smaller.
- Reorder some flags and down size the enums to contain the bits needed.
- Reorder the items in the structures to manually ensure they are are packed
better (especially when generating 64bit code - 8 bytes for every field,
16 bytes for every extension, instance sizes 8 bytes also).
- Split off the structure initialization so when the default is zero, the
generated static storage doesn't need to reserve the space. This is batched
at the message level, so all the fields for the message have to have zero
defaults to get the saves. By definition all proto3 syntax files fall into
this case but it also saves space for the proto2 that use the standard
defaults. (saves 8 bytes of static data for every field that had a zero
default)
- Don't track the enums defined by a message. Nothing in the runtime needs it
and it was just generation and runtime overhead. (saves 8 bytes per enum)
- Ensure EnumDescriptors are started up threadsafe in all cases.
- Split some of the Descriptor initialization into multiple methods so the
generated code isn't padded with lots of zero/nil args.
- Change how oneof info is feed to the runtime enabling us to generate less
static data (8 bytes saved per oneof for 64bit).
- Change how enum value informat is capture to pack the data and only decode
it if it ends up being needed. Avoids padding issues causing bloat of 64bit,
and removes the needs for extra pointers in addition to the data (just the
data and one pointer now).
|
|\
| |
| | |
add java/util support based on java/util/pom.xml
|
| | |
|
|\ \
| | |
| | | |
Adds more information to Objective C error.
|
| | |
| | |
| | |
| | | |
objc_class_prefix option is missing.
|
|\ \ \
| |_|/
|/| | |
Bazel iOS build settings
|
| |\ \ |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
pass correct args to protoc for wellknown protos when used as an external repository
|
| | |/ /
| |/| |
| | | |
| | | | |
external repository
|
|\ \ \ \
| |/ / /
|/| | | |
Fixing compilation error when building with emscripten.
|
|/ / /
| | |
| | | |
This change was previously done in //third_party in CL 108656107 but never made it to the open source project and was overwritten in an update.
|
|\ \ \
| | | |
| | | | |
Fix compiling clang/libc++ builds. (Issue: #1266)
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Fix up handing of fields with leading names that should be all caps.
|
|/ / / /
| | | |
| | | |
| | | | |
Add a compile test to confirm things are working as expected.
|
|\ \ \ \
| | | | |
| | | | | |
Update version to 3.0.0b2.post2
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
HeaderDoc support in the library and generated sources
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
- Convert most of the core library headers over to HeaderDoc format.
- Switch the generated comments over to HeaderDoc.
- Create GPBCodedOutputStream_PackagePrivate and move some things into there
that should be more internal.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Replace StringBuilder with TextWriter in JsonFormatter
|
|/ / / / / |
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
Add back the namespace_packages arg in setup.py.
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Improves #1296.
The problem: in the previous patch, we tweaked the __init__.py files to use
namespaces, but no longer declared ourselves as a namespace package. The
second half was unwise.
Note that this only comes up when installing protobuf alongside another
package that also installs into the google namespace; as of right now, the
only PyPI package that does is googleapis-common-protos, though the GAE SDK
also uses google.appengine. Installing either or both of those alongside this
package now works.
The case that still remains is the upgrade path, which is also what worried me
in #713. It seems that if protobuf 2.6.1 is installed, there's no way to
safely upgrade that to work with a newer protobuf. However, `pip uninstall` &&
`pip install` does the trick.
|
|\ \ \ \
| | | | |
| | | | | |
Changed Ruby to properly camelCase its JSON by default.
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| |_|_|_|/
|/| | | | |
Generate well-known types in Ruby extension and prune unneeded proto2 dependencies.
|
| | | | | |
|
|/ / / /
| | | |
| | | |
| | | | |
dependencies.
|
|\ \ \ \
| | | | |
| | | | | |
Make cpp generated enum constants constexpr when Options::proto_h is specified
|
| | | | |
| | | | |
| | | | |
| | | | | |
specified.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix copy/paste typo in CodedInputStreamTest
|
|/ / / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix CommonJS relative require generation, and test it
|
| | | | | | |
|
| | |_|_|/
| |/| | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Implement IDisposable for CodedInputStream and CodedOutputStream
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | | |
This fixes issue #679 and issue #1282.
(The .gitignore change is just around ncrunch; I can put it in a separate PR if you really want.)
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Remove hack for building Python support with Bazel.
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This change makes use of new imports attribute for Bazel's Python rules, which
enable adding directories to the PYTHONPATH. This allows us to remove
the hack for building protobuf's Python support with Bazel and now
allows projects to include protobuf using a Bazel external repository
rather than requiring it to be imported directly into the source tree as
//google/protobuf.
This change also updates the protobuf BUILD file to use a named
repository, @python//, for including Python headers rather than
//util/python. This allows projects to specify their own package for
Python headers when including protobuf with an external repository.
Fixes #1230
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fixed grpc C++ plugin support.
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
grpc C++ plugin generates additional files, namely .grpc.pb.cc and
.grpc.pb.h. Adding these files to the outs of the _proto_gen rule, so
dependents don't complain about undeclared inclusions. Also, compiling
the .grpc.pb.cc requires additional header files from the grpc library,
so added //external:grpc_lib to the deps of the
cc_library. Clients are expected to declare that in their bazel
WORKSPACE, pointing it to @grpc//:grpc++{_unsecure}.
|
|\ \ \ \ \
| | |_|_|/
| |/| | | |
Add a modified patch from craigcitro@ to handle namespace sharing.
|
| | | | | |
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
Added grpc plugin support to cc_proto_library.
|