• 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
benchmarks Loading commit data...
conformance Loading commit data...
editors Loading commit data...
examples Loading commit data...
java Loading commit data...
javanano Loading commit data...
m4 Loading commit data...
more_tests Loading commit data...
protoc-artifacts Loading commit data...
python Loading commit data...
ruby Loading commit data...
src Loading commit data...
vsprojects Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
Android.mk Loading commit data...
CHANGES.txt Loading commit data...
CONTRIBUTORS.txt Loading commit data...
INSTALL.txt Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.md Loading commit data...
autogen.sh Loading commit data...
config.h.include Loading commit data...
configure.ac Loading commit data...
generate_descriptor_proto.sh Loading commit data...
post_process_dist.sh Loading commit data...
protobuf-lite.pc.in Loading commit data...
protobuf.pc.in Loading commit data...