Commit Graph

24 Commits

Author SHA1 Message Date
Thomas Van Lenten
79a23c435c 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).
2016-03-17 10:04:21 -04:00
Jorge Canizales
f492dd8aa4 Include 'source' attribute in the podspec
The new version of Cocoapods requires it even when using the podspec locally.
2016-02-10 19:19:17 -08:00
Jorge Canizales
b40e125f0b Update podspec version to 3.0.0-beta-2
It's already submitted.
2016-01-15 20:21:46 -08:00
Jorge Canizales
c1e3f540af Fix Podspec version number
This was released as `3.0.0-alpha-4.1`
2015-09-29 09:46:39 -07:00
Jorge Canizales
af66e9003f Fix podspec by adding missing comma 2015-09-04 13:16:40 -07:00
TeBoring
fe98264317 Fix Protobuf.podspec 2015-08-26 23:55:33 -07:00
Feng Xiao
ffe9215140 Update version number.
Protoc, C++ runtime and Java runtime are updated to v3.0.0-beta-1, other
languages are updated to v3.0.0-alpha-4.
2015-08-26 15:11:43 -07:00
Bo Yang
d58e95bc10 Update minimal ios and osx version for deployment. 2015-07-27 10:54:44 -07:00
Jorge Canizales
d5d7bb3bfb Add Bazel target for protobuf ObjC runtime
Also add WKT headers to the umbrella file, and simplify Podspec with it.
Plus some layout improvements to the BUILD file.
2015-07-06 11:17:39 -07:00
Thomas Van Lenten
0f2b4a0e82 Update podspec for files that can build now, rename assets to not need @ in the name. 2015-06-10 14:30:59 -04:00
Bo Yang
9dd2bc4ea1 Update version number of objective-c to 3.0.0-alpha-4-pre 2015-06-09 16:16:46 -07:00
Paul Yang
4644f99d1a Merge pull request #447 from murgatroid99/podspec_fix
Add remaining not-already-imported well known types files to podspec
2015-06-02 16:03:38 -07:00
Jorge Canizales
9d6b946a9e Reorder fields so it looks like exclude_files affects preserve_paths 2015-06-02 01:03:03 -07:00
Jorge Canizales
e55a25c086 Better documentation 2015-06-02 00:42:40 -07:00
Jorge Canizales
d377c17b34 Remove backslashes after commas 2015-06-02 00:42:40 -07:00
Jorge Canizales
6afcaf0f2d Remove struct.proto too (redefines GPBValue) 2015-06-02 00:42:40 -07:00
Jorge Canizales
153d61a1a1 s/pobjc/pbobjc and simplify a bit the podspec 2015-06-02 00:42:40 -07:00
Jorge Canizales
249483e93c Document why the podspec is on the root of the repo 2015-06-01 19:55:27 -07:00
murgatroid99
bba6d76daa Ignored files that cause build errors 2015-06-01 17:21:02 -07:00
murgatroid99
df4012ad51 Add remaining not-already-imported well known types files to podspec 2015-06-01 11:31:11 -07:00
Jorge Canizales
244366f8a8 Undo previous commit: Make all headers public instead.
Apparently, in Cocoapods, all recursive #imports of public headers need
to be public.
2015-05-14 16:29:40 -07:00
Jorge Canizales
56ffef9f33 Restricts public headers to GPBProtocolBuffers.h and GPBProtocolBuffers_RuntimeSupport.h 2015-05-14 16:07:49 -07:00
Jorge Canizales
592c44f3ea Makes _PackagePrivate.h files private 2015-05-14 14:16:40 -07:00
Jorge Canizales
687a5fef9d Adds the initial version of the podspec for the proto3 Objective-C runtime. 2015-05-14 13:50:04 -07:00