projects
/
platform
/
upstream
/
flatbuffers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
442949b
)
Set default initialSize for Builder to 0 (#6310)
author
Richard A Hofer
<rofer@google.com>
Tue, 8 Dec 2020 00:20:26 +0000
(19:20 -0500)
committer
GitHub
<noreply@github.com>
Tue, 8 Dec 2020 00:20:26 +0000
(16:20 -0800)
* Set default initialSize for Builder to 0
* Change default size of builder to 1024.
This matches what the C++ and Java versions do.
python/flatbuffers/builder.py
patch
|
blob
|
history
diff --git
a/python/flatbuffers/builder.py
b/python/flatbuffers/builder.py
index
f9448b0
..
c5978bd
100644
(file)
--- 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.