Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use the fact that we know the tag size and bytes at codegen time to optimize. | Jon Skeet | 2015-06-17 | 19 | -1188/+970 |
| | |||||
* | Regenerate proto files | Jon Skeet | 2015-06-12 | 6 | -671/+838 |
| | |||||
* | Fix oneof generator - forgot to provide variables... | Jon Skeet | 2015-06-12 | 1 | -0/+1 |
| | |||||
* | Reimplement RepeatedField<T> using an array as the backing store. | Jon Skeet | 2015-06-12 | 5 | -51/+231 |
| | | | | | | | | | | This is effectively reimplementing List<T>, but with a few advantages: - We know that an empty repeated field is common, so don't allocate an array until we need to - With direct access to the array, we can easily convert enum values to int without boxing - We can relax the restrictions over what happens if the repeated field is modified while iterating, avoiding so much checking This is somewhat risky, in that reimplementing a building block like this is *always* risky, but hey... (The performance benefits are significant...) | ||||
* | Move Count checks into the serialization code | Jon Skeet | 2015-06-12 | 3 | -13/+12 |
| | | | | I wouldn't expect this to affect anything, but it appears to. | ||||
* | Simplify ComputeInt32Size to call ComputeInt32SizeNoTag. | Jon Skeet | 2015-06-12 | 1 | -11/+1 |
| | |||||
* | Optimization of CalculateSize: avoid foreach over empty lists. | Jon Skeet | 2015-06-12 | 3 | -12/+10 |
| | |||||
* | Optimization to avoid foreach over empty lists. | Jon Skeet | 2015-06-12 | 1 | -9/+64 |
| | |||||
* | Use Length to check string/bytes fields for emptiness - it's faster than an ↵ | Jon Skeet | 2015-06-12 | 1 | -1/+7 |
| | | | | equality check. | ||||
* | Fix oneof behaviour in the face of default values. | Jon Skeet | 2015-06-12 | 1 | -9/+4 |
| | |||||
* | Fix incorrect handling of non-seekable streams. | Jon Skeet | 2015-06-12 | 1 | -2/+2 |
| | | | | | | This mirrors commit 7c86bbbc7a3365c034d82173b38ec4427b98b3b2 in the pull request to the main protobuf project, but also reduces the size of the buffer created. (There's no point in creating a 1024-byte buffer if we're only skipping 5 bytes...) | ||||
* | Update the AddressBook tutorial to reflect the mutable design. | Jon Skeet | 2015-06-12 | 5 | -1054/+287 |
| | |||||
* | Coded*Stream streamlining. | Jon Skeet | 2015-06-12 | 23 | -2596/+879 |
| | | | | Remove ICodedInputStream and ICodedOutputStream, and rewrite CodedInputStream and CodedOutputStream to be specific to the binary format. If we want to support text-based formats, that can be a whole different serialization mechanism. | ||||
* | Reimplement enums as int values, and get rid of EnumHelper. | Jon Skeet | 2015-06-11 | 16 | -208/+137 |
| | | | | This makes repeated fields really awkward at the moment - but when we reimplement RepeatedField<T> to be backed by an array, we can cast the array directly... | ||||
* | Optimize WriteRawInt32 for the common case of a value < 128, which is a ↵ | Jon Skeet | 2015-06-11 | 1 | -0/+7 |
| | | | | | | single byte. Aside from anything else, this will be used for all tags for fields 1-15. | ||||
* | Improve string encoding times. | Jon Skeet | 2015-06-11 | 2 | -5/+17 |
| | | | | | Cache a reference to Encoding.UTF8 - the property access is (rather surprisingly) significant. Additionally, when we detect that the string is all ASCII (due to the computed length in bytes being the length in characters), we can perform the encoding very efficiently ourselves. | ||||
* | Use expression trees to avoid boxing when converting enums. | Jon Skeet | 2015-06-09 | 1 | -4/+12 |
| | |||||
* | First pass at the mutable API. Quite a bit more to do - in particular, it's ↵ | Jon Skeet | 2015-06-09 | 166 | -133025/+11445 |
| | | | | pretty slow right now. | ||||
* | First stab at new proto3-only code generator | Jon Skeet | 2015-06-05 | 26 | -2095/+295 |
| | |||||
* | Merge pull request #462 from anandolee/master | Jie Luo | 2015-06-04 | 28 | -1647/+1861 |
|\ | | | | | Migrate writer to printer for C# | ||||
| * | Migrate writer to io::Printer for C# | Jie Luo | 2015-06-04 | 28 | -1647/+1861 |
| | | |||||
* | | Merge pull request #457 from xfxyjwf/cmake | Feng Xiao | 2015-06-04 | 12 | -11/+767 |
|\ \ | | | | | | | Add cmake support. | ||||
| * | | Fix README.md formatting. | Feng Xiao | 2015-06-04 | 1 | -34/+43 |
| | | | | | | | | | | | | Change-Id: I121cb70bfdc4894c297ab1a36f1db47736c0652b | ||||
| * | | Add an cmake option to exclude tests. | Feng Xiao | 2015-06-04 | 1 | -2/+4 |
| | | | |||||
| * | | Add cmake support. | Feng Xiao | 2015-05-31 | 12 | -11/+756 |
| | | | |||||
* | | | Merge pull request #456 from xfxyjwf/android | Jisi Liu | 2015-06-04 | 2 | -494/+0 |
|\ \ \ | | | | | | | | | Remove Android.mk | ||||
| * | | | Remove Android.mk | Feng Xiao | 2015-06-02 | 2 | -494/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | This file bares a different copyright license and also doesn't actually work (out-dated file lists, no config.h/pbconfig.h, refers to inexist AOSP paths). | ||||
* | | | | Merge pull request #453 from bakineggs/master | Feng Xiao | 2015-06-03 | 1 | -0/+14 |
|\ \ \ \ | |/ / / |/| | | | Add protoc path detection for Mac OS | ||||
| * | | | Add protoc path detection for Mac OS | Dan Barry | 2015-06-02 | 1 | -0/+14 |
| | | | | |||||
* | | | | Merge pull request #444 from xfxyjwf/vs2010_fix | Feng Xiao | 2015-06-02 | 2 | -9/+9 |
|\ \ \ \ | |/ / / |/| / / | |/ / | Fix two issues on vs2010. | ||||
| * | | Call copy() only if there is something to copy. | Feng Xiao | 2015-05-31 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | | RepeatedField::begin()/end() will return NULL when the content is empty. Passing these NULL values to std::copy() will result in runtime complains from some compilers (e.g., vs2010). | ||||
| * | | Fix MapAllocator::destroy() bug. | Feng Xiao | 2015-05-31 | 1 | -8/+6 |
| | | | | | | | | | | | | | | | destroy() should always call the destructor because the caller may rely on the destructor to do clean-ups. | ||||
* | | | Merge pull request #447 from murgatroid99/podspec_fix | Paul Yang | 2015-06-02 | 1 | -8/+19 |
|\ \ \ | | | | | | | | | Add remaining not-already-imported well known types files to podspec | ||||
| * \ \ | Merge pull request #1 from jcanizales/podspec_fix | Michael Lumish | 2015-06-02 | 1 | -7/+19 |
| |\ \ \ | | | | | | | | | | | A few corrections to the proposed podspec | ||||
| | * | | | Reorder fields so it looks like exclude_files affects preserve_paths | Jorge Canizales | 2015-06-02 | 1 | -4/+4 |
| | | | | | |||||
| | * | | | Better documentation | Jorge Canizales | 2015-06-02 | 1 | -4/+4 |
| | | | | | |||||
| | * | | | Remove backslashes after commas | Jorge Canizales | 2015-06-02 | 1 | -12/+13 |
| | | | | | |||||
| | * | | | Remove struct.proto too (redefines GPBValue) | Jorge Canizales | 2015-06-02 | 1 | -1/+1 |
| | | | | | |||||
| | * | | | s/pobjc/pbobjc and simplify a bit the podspec | Jorge Canizales | 2015-06-02 | 1 | -3/+14 |
| |/ / / | |||||
| * | | | Ignored files that cause build errors | murgatroid99 | 2015-06-01 | 1 | -3/+2 |
| | | | | |||||
| * | | | Add remaining not-already-imported well known types files to podspec | murgatroid99 | 2015-06-01 | 1 | -1/+1 |
| |/ / | |||||
* | | | Merge pull request #305 from ezegomez/master | Feng Xiao | 2015-06-02 | 1 | -1/+1 |
|\ \ \ | | | | | | | | | Fix unittest in i386 | ||||
| * | | | Fix unittest in i386 | Ezequiel Lara Gomez | 2015-04-27 | 1 | -1/+1 |
| | | | | |||||
* | | | | Merge pull request #451 from jcanizales/document-why-podspec-is-on-root | Feng Xiao | 2015-06-02 | 1 | -0/+5 |
|\ \ \ \ | | | | | | | | | | | Document why the podspec is on the root of the repo | ||||
| * | | | | Document why the podspec is on the root of the repo | Jorge Canizales | 2015-06-01 | 1 | -0/+5 |
| | |/ / | |/| | | |||||
* | | | | Merge pull request #441 from anandolee/master | Jan Tattermusch | 2015-06-01 | 11 | -302/+677 |
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | Change the C# enum generator inherit from primitive generator | ||||
| * | | Change the C# enum generator inherit from primitive generator | Jie Luo | 2015-05-29 | 11 | -302/+677 |
| | | | |||||
* | | | Merge pull request #404 from anandolee/master | Jie Luo | 2015-05-29 | 39 | -2163/+4720 |
|\| | | | | | | | | Add oneof support for c# | ||||
| * | | Add oneof support for C# | Jie Luo | 2015-05-29 | 39 | -2163/+4720 |
| | | | |||||
* | | | Add distributionManagement explicitly to prevent maven from using | Bo Yang | 2015-05-29 | 2 | -0/+20 |
| | | | | | | | | | | | | | | | default configuration. In default configuration, maven needs webdav for deployment, which cannot be found in central repository. |