Hi,

On Thursday 27 March 2014 22:53:18 Tommi Mäkitalo wrote:
> the cxxtools::SerializationInfo is meant to be a generic data structure, 
> which do not depend on the format. Using the serialization operator you 
> can convert C++ objects into a cxxtools::SerializationInfo. Json is just 
> one format you can create from that.
> 
> Putting a raw type make the SerializationInfo depend on the format. You 
> are not able to create xml from that any more. It would really break the 
> idea of the serialization framework.
> 
> I would prefer not to support hat.

understood.


> Note that you can convert you existing json parts into a 
> SerializationInfo using the json deserializer. Then you can use that to 
> build the complete structure and serialize it into json again. It is not 
> really the fastest was but I guess it is a strange requirement also.

I am well aware of this approach and this is how it was done prior to my patch 
attempt. However, this process turned out to be too inefficient for our 
application. Note that about 90% of the output data is cached JSON for 
performance reasons because performance is what we are after.

Cheers,
Marek

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to