AnyEvent-Fork-RPC
view release on metacpan or search on metacpan
$AnyEvent::Fork::RPC::CBOR_XS_SERIALISER - uses CBOR::XS
This serialiser creates CBOR::XS arrays - you have to make
sure the CBOR::XS module is installed for this serialiser to
work. It can be beneficial for sharing when you preload the
CBOR::XS module in a template process.
CBOR::XS is about as fast as the octet string serialiser,
but supports complex data structures (similar to JSON) and
is faster than any of the other serialisers. If you have the
CBOR::XS module available, it's the best choice.
The encoder enables "allow_sharing" (so this serialisation
method can encode cyclic and self-referencing data
structures).
Implementation:
use CBOR::XS ();
(
sub { CBOR::XS::encode_cbor_sharing \@_ },
=item C<$AnyEvent::Fork::RPC::CBOR_XS_SERIALISER> - uses L<CBOR::XS>
This serialiser creates CBOR::XS arrays - you have to make sure the
L<CBOR::XS> module is installed for this serialiser to work. It can be
beneficial for sharing when you preload the L<CBOR::XS> module in a template
process.
L<CBOR::XS> is about as fast as the octet string serialiser, but supports
complex data structures (similar to JSON) and is faster than any of the
other serialisers. If you have the L<CBOR::XS> module available, it's the
best choice.
The encoder enables C<allow_sharing> (so this serialisation method can
encode cyclic and self-referencing data structures).
Implementation:
use CBOR::XS ();
(
sub { CBOR::XS::encode_cbor_sharing \@_ },
sub { @{ CBOR::XS::decode_cbor shift } }
( run in 0.913 second using v1.01-cache-2.11-cpan-4e96b696675 )