Skip to content

Commit 4f95f8b

Browse files
Added a note in the documentation
1 parent 259fb05 commit 4f95f8b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/supported_formats/yas.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Furthermore, when compiling reflect-cpp, you need to pass `-DREFLECTCPP_YAS=ON`
55

66
yas is a very fast and compact serialization library. reflect-cpp implements it as a schemaful binary format.
77

8+
Note that even though yas is probably the fastest format supported by reflect-cpp, that speed comes at the cost of lack of backwards compatibility. If you change the structure of your data, you will not be able to read old files anymore. If you need backwards compatibility, consider using a different format like flexbuffers or msgpack, which are also supported by reflect-cpp. Both of these are very fast and compact as well, but they are schema-less and therefore more flexible when it comes to changing the structure of your data.
9+
810
## Reading and writing
911

1012
Suppose you have a struct like this:

0 commit comments

Comments
 (0)