Am 28.03.2014 06:10, schrieb Marek Lindner: > 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 > Hi Marek,
after talking to yofuh I rethought it. You explained him your problem and he explained it to me. So I see, that you have just too much preformatted JSON. The "raw" feature would really be an option to shoot yourself into your foot but sometimes it is necessary to achieve a goal. It is just like pointers - they are dangerous but just too handy. So I guess I will apply your patch. Tommi ------------------------------------------------------------------------------ _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
