23 Sep
2020
23 Sep
'20
11:39 a.m.
On 23.09.20 11:04, Hans Dembinski via Boost wrote:
You said yourself that Boost.JSON is not as efficient as it could be during the conversion of "my data type" to JSON, because the existing data has to be copied into the json::value first. I am a young member of the Boost family, but my feeling is that this would have been a reason to reject the design in the past. Designing abstractions that enable users to get maximum performance if they want it is a core value of C++.
Actually, some of the oldest Boost libraries have (had) atrocious performance. Early Boost libraries were often more concerned with how to do something at all (within the limitations of C++03) than with how to do it efficiently. -- Rainer Deyke (rainerd@eldwood.com)