[Cgi-session-user] Progress with CGI::Session::Serialize::yaml
Brought to you by:
sherzodr
From: Tyler M. <ty...@yi...> - 2006-02-23 23:04:14
|
I've played around with the four YAML modules people seem most interested in (YAML, YAML::Syck, JSON, JSON::Syck). - YAML passes all the existing serialization unit tests - YAML::Syck passes all except the last one (101 - Overloaded objects have matching addresses) - JSON and JSON::Syck fail to rebless references back into their original package, but this is pretty much expected behaviour. What do you think is the best way to move forward? Cosidering all those serializers have the same interface, I was thinking of having ::yaml default to the regular YAML package, and then if people want they can override that with something like local $CGI::Session::Serializa::yaml::FLAVOUR = "JSON::Syck"; ... I would really like to default to YAML::Syck instead since it's much much faster, but it doesnt appear to deal with duplicate references as well as YAML. Thoughts? Thanks, Tyler |