Set default initialSize for Builder to 0 (#6310)

* Set default initialSize for Builder to 0

* Change default size of builder to 1024.

This matches what the C++ and Java versions do.
This commit is contained in:
Richard A Hofer
2020-12-07 19:20:26 -05:00
committed by GitHub
parent 442949bc11
commit aafc5dc950

View File

@@ -113,7 +113,7 @@ class Builder(object):
MAX_BUFFER_SIZE = 2**31
## @endcond
def __init__(self, initialSize):
def __init__(self, initialSize=1024):
"""Initializes a Builder of size `initial_size`.
The internal buffer is grown as needed.