Parameters for DataFormatReader/Writer.
Functions | |
MAXON_ATTRIBUTE (Id, COMPRESSION, "net.maxon.dataformat.compression") | |
MAXON_ATTRIBUTE (Bool, NO_REFERENCES, "net.maxon.dataformat.no_references") | |
MAXON_ATTRIBUTE (Bool, ALLOW_DUPLICATES, "net.maxon.dataformat.allow_duplicates") | |
MAXON_ATTRIBUTE (Bool, SORTED, "net.maxon.dataformat.sorted") | |
maxon::DATAFORMAT::MAXON_ATTRIBUTE | ( | Id | , |
COMPRESSION | , | ||
"net.maxon.dataformat.compression" | |||
) |
Enable compression during write for binary format. The performance hit is modest.
maxon::DATAFORMAT::MAXON_ATTRIBUTE | ( | Bool | , |
NO_REFERENCES | , | ||
"net.maxon.dataformat.no_references" | |||
) |
It does not support writing of WeakRefs to COW objects. Can increase the file size a lot.
Write all references directly as non-referenced objects (text formats only).
maxon::DATAFORMAT::MAXON_ATTRIBUTE | ( | Bool | , |
ALLOW_DUPLICATES | , | ||
"net.maxon.dataformat.allow_duplicates" | |||
) |
Decreases the file size. It slightly increases memory usage and decreases performance while writing.
If false, all identical Id/InternedId/CString/String objects will only be written once (binary format only).
maxon::DATAFORMAT::MAXON_ATTRIBUTE | ( | Bool | , |
SORTED | , | ||
"net.maxon.dataformat.sorted" | |||
) |
Sort all maps and sets when writing (text formats only). This slightly increases memory usage and decreases performance while writing.