• Brian Duff's avatar
    Expose generate_clear as an option. · dac7e02d
    Brian Duff authored
    I wasn't able to get the clear() method to inline into the
    constructor when optimizations are on in proguard. As a result,
    every message has an extra superfluous kept method assuming the
    app never uses clear() directly.
    
    There are a couple of instances where setting this option false is
    necessary in order to get code dexing successfully without hitting
    the method limit, e.g. https://goto.google.com/tltzq
    
    In this example, I tried turning on the method/inlining/unique and
    method/inlining/short optimizations before resorting to adding the
    generate_clear option, but the method count did not decrease. The
    clear() methods were contributing over a thousand extra methods.
    
    Change-Id: If6a9651d6a59cdf70b1040d8248779710ac73105
    dac7e02d
Name
Last commit
Last update
..
compiler Loading commit data...
io Loading commit data...
stubs Loading commit data...
testdata Loading commit data...
testing Loading commit data...
any.proto Loading commit data...
api.proto Loading commit data...
arena.cc Loading commit data...
arena.h Loading commit data...
arena_nc.cc Loading commit data...
arena_nc_test.py Loading commit data...
arena_test_util.cc Loading commit data...
arena_test_util.h Loading commit data...
arena_unittest.cc Loading commit data...
arenastring.cc Loading commit data...
arenastring.h Loading commit data...
arenastring_unittest.cc Loading commit data...
descriptor.cc Loading commit data...
descriptor.h Loading commit data...
descriptor.pb.cc Loading commit data...
descriptor.pb.h Loading commit data...
descriptor.proto Loading commit data...
descriptor_database.cc Loading commit data...
descriptor_database.h Loading commit data...
descriptor_database_unittest.cc Loading commit data...
descriptor_unittest.cc Loading commit data...
drop_unknown_fields_test.cc Loading commit data...
duration.proto Loading commit data...
dynamic_message.cc Loading commit data...
dynamic_message.h Loading commit data...
dynamic_message_unittest.cc Loading commit data...
empty.proto Loading commit data...
extension_set.cc Loading commit data...
extension_set.h Loading commit data...
extension_set_heavy.cc Loading commit data...
extension_set_unittest.cc Loading commit data...
field_mask.proto Loading commit data...
generated_enum_reflection.h Loading commit data...
generated_enum_util.h Loading commit data...
generated_message_reflection.cc Loading commit data...
generated_message_reflection.h Loading commit data...
generated_message_reflection_unittest.cc Loading commit data...
generated_message_util.cc Loading commit data...
generated_message_util.h Loading commit data...
lite_unittest.cc Loading commit data...
map.h Loading commit data...
map_entry.h Loading commit data...
map_entry_lite.h Loading commit data...
map_field.cc Loading commit data...
map_field.h Loading commit data...
map_field_inl.h Loading commit data...
map_field_lite.h Loading commit data...
map_field_test.cc Loading commit data...
map_lite_test_util.cc Loading commit data...
map_lite_test_util.h Loading commit data...
map_lite_unittest.proto Loading commit data...
map_proto2_unittest.proto Loading commit data...
map_test.cc Loading commit data...
map_test_util.cc Loading commit data...
map_test_util.h Loading commit data...
map_test_util_impl.h Loading commit data...
map_type_handler.h Loading commit data...
map_unittest.proto Loading commit data...
message.cc Loading commit data...
message.h Loading commit data...
message_lite.cc Loading commit data...
message_lite.h Loading commit data...
message_unittest.cc Loading commit data...
metadata.h Loading commit data...
no_field_presence_test.cc Loading commit data...
package_info.h Loading commit data...
preserve_unknown_enum_test.cc Loading commit data...
proto3_arena_unittest.cc Loading commit data...
proto_cast.h Loading commit data...
proto_cast_test.cc Loading commit data...
reflection.h Loading commit data...
reflection_internal.h Loading commit data...
reflection_ops.cc Loading commit data...
reflection_ops.h Loading commit data...
reflection_ops_unittest.cc Loading commit data...
repeated_field.cc Loading commit data...
repeated_field.h Loading commit data...
repeated_field_reflection.h Loading commit data...
repeated_field_reflection_unittest.cc Loading commit data...
repeated_field_unittest.cc Loading commit data...
service.cc Loading commit data...
service.h Loading commit data...
source_context.proto Loading commit data...
struct.proto Loading commit data...
test_util.cc Loading commit data...
test_util.h Loading commit data...
test_util_lite.cc Loading commit data...
test_util_lite.h Loading commit data...
text_format.cc Loading commit data...
text_format.h Loading commit data...
text_format_unittest.cc Loading commit data...
timestamp.proto Loading commit data...
type.proto Loading commit data...
unittest.proto Loading commit data...
unittest_arena.proto Loading commit data...
unittest_custom_options.proto Loading commit data...
unittest_drop_unknown_fields.proto Loading commit data...
unittest_embed_optimize_for.proto Loading commit data...
unittest_empty.proto Loading commit data...
unittest_enormous_descriptor.proto Loading commit data...
unittest_import.proto Loading commit data...
unittest_import_lite.proto Loading commit data...
unittest_import_public.proto Loading commit data...
unittest_import_public_lite.proto Loading commit data...
unittest_lite.proto Loading commit data...
unittest_lite_imports_nonlite.proto Loading commit data...
unittest_mset.proto Loading commit data...
unittest_no_arena.proto Loading commit data...
unittest_no_arena_import.proto Loading commit data...
unittest_no_field_presence.proto Loading commit data...
unittest_no_generic_services.proto Loading commit data...
unittest_optimize_for.proto Loading commit data...
unittest_preserve_unknown_enum.proto Loading commit data...
unittest_preserve_unknown_enum2.proto Loading commit data...
unittest_proto3_arena.proto Loading commit data...
unknown_enum_impl.h Loading commit data...
unknown_enum_test.proto Loading commit data...
unknown_field_set.cc Loading commit data...
unknown_field_set.h Loading commit data...
unknown_field_set_unittest.cc Loading commit data...
wire_format.cc Loading commit data...
wire_format.h Loading commit data...
wire_format_lite.cc Loading commit data...
wire_format_lite.h Loading commit data...
wire_format_lite_inl.h Loading commit data...
wire_format_unittest.cc Loading commit data...
wrappers.proto Loading commit data...