Joshua Haberman
3d437bbcab
Some pre-PR fixes.
3 years ago
Joshua Haberman
823eb09694
Update all 2011 dates to 2021.
4 years ago
Joshua Haberman
e59d2c8fa7
Added license headers to all files.
4 years ago
Joshua Haberman
3eba47914b
Allocate hasbits and table slots in "hotness" order.
...
Without a profile, we assume that fields with smaller numbers
are hotter.
4 years ago
Joshua Haberman
c81113e60f
Added fallback code for when no enum matches.
4 years ago
Joshua Haberman
ded2e657a7
Added compatibility with old generated code.
...
Until everyone can regenerate their code, we need to provide
compatible semantics with the old generated code.
Also fixed a bug where enums were allocated 8 bytes instead
of 4.
4 years ago
Joshua Haberman
9938cf8f27
Put submsg_index directly in table data. Drop oneof support for now to focus.
4 years ago
Joshua Haberman
7ec2c52346
Donate/steal from arena to accelerate decoding.
4 years ago
Joshua Haberman
ca512852f3
Fixed parsing for string->double maps. ( #243 )
...
Map parsing/serializing relies on map entries always
having a predictable order. The code that generates
layout was not respecting this in the case of string
keys and primitive values.
5 years ago
Joshua Haberman
382f92a87f
Maps encode and decode successfully!
5 years ago
Joshua Haberman
380558922b
test_encoder passes! Other tests still need to be fixed.
6 years ago
Joshua Haberman
6bcdaa1352
Changed generated array accessors to be more convenient.
6 years ago
Josh Haberman
5f575995b5
Added upb compiler written in C++ as a normal protoc plugin.
6 years ago