• Feng Xiao's avatar
    Speed up JSON parsing. · bd158fc2
    Feng Xiao authored
    It turns out calling StringOutputStream::Next()/BackUp() repeatedly is
    very costly in opensource protobuf because it keeps resize() the string
    back and forth. The current JSON conversion API suffers this problem and
    leads to ridiculously long parsing time:
    https://github.com/google/protobuf/issues/2305#issuecomment-257785492
    
    This change fixes the problem but caching the buffer of Next() and avoid
    calling BackUp() as much as possible.
    bd158fc2
Name
Last commit
Last update
..
google/protobuf Loading commit data...
solaris Loading commit data...
Makefile.am Loading commit data...
README.md Loading commit data...