On Monday, August 21, 2017 at 2:27:42 AM UTC-5, David Brown wrote:
>
> Then how about giving a list of the results here? Otherwise it looks
> like you are just cherry-picking - saying you are faster than Boost,
> Cereal and Protobuf but "forgetting" to mention yas, thrift, msgpack and
If it's faster than Cereal, it's faster than thrift and msgpack.
> the others listed on that site. Benchmarks can give an idea of relative
> speeds and sizes, but you have to provide the numbers - not your
> conclusions, which will be highly biased (or at least assumed to be
> highly biased) since you are the producer of one of the competing libraries.
The size I provided is a number.
>
> Of course, there are all sorts of feature and requirements differences
> between these libraries which are usually far more important than speed
> or size. It would be helpful to have a comparison there too (the github
> project is missing this information, and is basically useless for anyone
> trying to consider choosing a serialisation library).
The CMW automates the creation of serialization functions.
Here's another serialization library:
https://github.com/eliasdaler/MetaStuff
His approach requires you to maintain functions like this:
template <>
inline auto registerMembers<Person>()
{
return members(
member("age", &Person::getAge, &Person::setAge),
member("name", &Person::getName, &Person::setName),
member("salary", &Person::salary),
member("favouriteMovies", &Person::favouriteMovies)
);
}
With the CMW you don't have to write code like that.
Other than the CMW, I'm not aware of other libraries that have
support for plf::colony or std::string_view.
Brian
Ebenezer Enterprises
http://webEbenezer.net