Commit Graph

7714 Commits

Author SHA1 Message Date
Jan Tattermusch
c06812b0b2 address a few TODOs 2020-06-08 17:13:15 +02:00
Jan Tattermusch
19c0d73fb9 test WriteContext writing with multiple flushes 2020-06-08 17:03:51 +02:00
Jan Tattermusch
53708e2f15 test writing to a stackalloc buffer 2020-06-08 17:03:03 +02:00
Jan Tattermusch
e14a5c8fe6 address a few TODOs 2020-06-08 16:23:33 +02:00
Jan Tattermusch
43dcee2fa9 remove some todos 2020-06-08 15:54:01 +02:00
Jan Tattermusch
3375e251f9 optimize writing non-ascii strings 2020-06-08 15:38:36 +02:00
Jan Tattermusch
3dad187707 add benchmark for writing of NonAsciiStrings 2020-06-08 12:25:19 +02:00
Jan Tattermusch
8a2d5884bf address review comments 2020-06-08 11:19:57 +02:00
Jan Tattermusch
daada70233
Merge pull request #7596 from jtattermusch/safe_span_accessors
annotate ByteString.Span and ByteString.Memory as SecuritySafeCritical
2020-06-08 07:56:50 +02:00
Anton Kast
4d6712e739
Enable experimental presence detection in JS. (#7592)
Co-authored-by: David L. Jones <dlj@google.com>
2020-06-05 16:39:02 -07:00
Thomas Van Lenten
c6c8bab9e2 Move runtime import writing into a helper.
File and ImportWriter duplicated the logic, so move it to a helper (on
ImportWriter), and share the impl instead of duplicating it since it
includes some conditional logic around Framework based import support.
2020-06-05 16:23:30 -04:00
Thomas Van Lenten
57be643a36 Now that the paths are the same, use one ivar to track the values.
This changes when we moved the WKTs to the root of the runtime package.
2020-06-05 16:23:30 -04:00
Jan Tattermusch
a296413b5a optimize WriteFloat 2020-06-05 14:41:07 +02:00
Jan Tattermusch
886c263a3c initial version of write benchmarks 2020-06-05 14:41:07 +02:00
Jan Tattermusch
a6d1ed1712 annotate ByteString.Span and ByteString.Memory as SecuritySafeCritical 2020-06-03 17:09:03 +02:00
Jan Tattermusch
b2c94974b2 remove a TODO 2020-06-03 17:05:21 +02:00
Jan Tattermusch
56372898cf test writing with different blocksizes 2020-06-03 16:58:02 +02:00
Jan Tattermusch
f9f92a6dd2 increase test coverage 2020-06-03 16:26:05 +02:00
Jan Tattermusch
94e64f2c0b a bit more cleanup 2020-06-03 16:12:16 +02:00
Jan Tattermusch
ba61d76e52 simplify serialization to single span 2020-06-03 15:54:29 +02:00
Jan Tattermusch
b3cdba1cfd increase test coverage 2020-06-03 15:50:07 +02:00
Jan Tattermusch
7bfaaba534 cleanup coded output stream 2020-06-03 15:48:34 +02:00
Jan Tattermusch
9039103637 message extensions + refactor 2020-06-03 15:32:20 +02:00
Jan Tattermusch
8dbf707aa0 add more tests 2020-06-03 14:47:55 +02:00
Jan Tattermusch
1e1d455423 add WriteFloat TODO 2020-06-03 14:46:27 +02:00
Jan Tattermusch
2bce090f32 add more tests 2020-06-03 14:36:39 +02:00
Jan Tattermusch
ecbb29d354 add WriteContext.Flush() method 2020-06-03 14:22:40 +02:00
Jan Tattermusch
3cdc107bda fix bug in RefreshBuffer 2020-06-03 14:11:44 +02:00
Joshua Haberman
5f5efe50c5
Added changelog entries for all changes already merged from google3. (#7585) 2020-06-03 00:12:51 -07:00
Jan Tattermusch
efbadb6c73
Merge pull request #7412 from JamesNK/jamesnk/repeated-fixed-parsing
Improve performance of parsing repeated fixed sized types
2020-06-03 08:55:04 +02:00
Joshua Haberman
31ebe2ac71
Merge pull request #7590 from haberman/merge-release-branch
Merge release branch
2020-06-02 15:12:47 -07:00
Thiago C. D'Ávila
28cc693f3d
Initial module docstring for python _pb2 (#7528)
Generated Python modules now have a module-level docstring.
2020-06-02 14:45:30 -07:00
Thomas Van Lenten
b9cf3866c5 Tweak return types for GetSupportedFeatures to unit64_t. 2020-06-02 17:11:50 -04:00
Joshua Haberman
b971243fe0 Merge branch '3.12.x' into merge-release-branch 2020-06-02 13:24:30 -07:00
James Newton-King
921bdaaa61
Improve repeated fixed parsing performance 2020-06-03 07:06:27 +12:00
Jan Tattermusch
90d4969bd1 LegacyGeneratedCodeTest now passing 2020-06-02 19:58:04 +02:00
Jan Tattermusch
361c933a58 annotate ByteString.Span and ByteString.Memory as SecuritySafeCritical 2020-06-02 19:58:04 +02:00
Jan Tattermusch
9070389516 regenerate code 2020-06-02 19:58:04 +02:00
Jan Tattermusch
2b9a73e948 fix codegen 2020-06-02 19:58:04 +02:00
Jan Tattermusch
ea1d55927d test are almost passing 2020-06-02 19:58:04 +02:00
Jan Tattermusch
125e4ad267 regenerate C# protos 2020-06-02 19:58:04 +02:00
Jan Tattermusch
d3eddf7e2d make everything build, with some TODOs 2020-06-02 19:58:04 +02:00
Jan Tattermusch
dda621749c codegen for WriteContext based serialization 2020-06-02 19:58:04 +02:00
Jan Tattermusch
ca7bc464a9 make all writing use WriteContext 2020-06-02 19:58:04 +02:00
Jan Tattermusch
c17af44172 apply SecuritySafeCritical attribute 2020-06-02 19:58:04 +02:00
Jan Tattermusch
5742a64eea fix WriteString bug 2020-06-02 19:58:04 +02:00
Jan Tattermusch
5fc49bdd5a fix a bunch of bugs 2020-06-02 19:58:04 +02:00
Jan Tattermusch
d0e08f546d entire solution builds now 2020-06-02 19:58:04 +02:00
Jan Tattermusch
ee6b20afbe CodedOutputStream adjustments 2020-06-02 19:58:04 +02:00
Jan Tattermusch
f9d9019e27 more progress 2020-06-02 19:58:04 +02:00