diff options
author | Richard A Hofer <rofer@google.com> | 2020-12-07 19:20:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 16:20:26 -0800 |
commit | aafc5dc9500f01c643e3ebfe1b7ea851bd536d92 (patch) | |
tree | cdcd1b35c1958c00fd84b6826a7f78db2471a9eb | |
parent | 442949bc11c4e08a04516390dd78794cd4dec746 (diff) | |
download | flatbuffers-aafc5dc9500f01c643e3ebfe1b7ea851bd536d92.tar.gz flatbuffers-aafc5dc9500f01c643e3ebfe1b7ea851bd536d92.tar.bz2 flatbuffers-aafc5dc9500f01c643e3ebfe1b7ea851bd536d92.zip |
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.
-rw-r--r-- | python/flatbuffers/builder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/flatbuffers/builder.py b/python/flatbuffers/builder.py index f9448b0b..c5978bdd 100644 --- a/python/flatbuffers/builder.py +++ b/python/flatbuffers/builder.py @@ -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. |