• kenton@google.com's avatar
    Refactor the way output is handled in CommandLineInterface -- now it will be… · 5f12164f
    kenton@google.com authored
    Refactor the way output is handled in CommandLineInterface -- now it will be stored in-memory until all code generators have completed, then dumped to disk all at once.  While this means that protoc uses more memory, the code is much simpler, and handles insertions much faster.  Also, this made it easier to implement a useful feature:  insertions will be indented to match the insertion point line.  Therefore, when inserting into Python code, you don't have to figure out how much to indent your inserted code.  The refactoring should also make it easier to implement output-to-jar at some point.
    5f12164f
Name
Last commit
Last update
benchmarks Loading commit data...
editors Loading commit data...
examples Loading commit data...
java Loading commit data...
m4 Loading commit data...
python Loading commit data...
src Loading commit data...
vsprojects Loading commit data...
CHANGES.txt Loading commit data...
CONTRIBUTORS.txt Loading commit data...
COPYING.txt Loading commit data...
INSTALL.txt Loading commit data...
Makefile.am Loading commit data...
README.txt Loading commit data...
autogen.sh 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...