[Annotated Buffers] Improve efficiency (#7820)

* AnnotatedBinaryTextGen switch to ofstream instead of building giant string

* Add --annotate-sparse-vectors to reduce AFB size
This commit is contained in:
Derek Bailey
2023-02-06 23:42:44 -06:00
committed by GitHub
parent 85aee1f5c3
commit 535ead8d8c
4 changed files with 108 additions and 86 deletions

View File

@@ -41,6 +41,9 @@ class AnnotatedBinaryTextGenerator {
//
// Example: binary1.bin -> binary1.afb
std::string output_extension = "afb";
// Controls.
bool include_vector_contents = true;
};
explicit AnnotatedBinaryTextGenerator(