| 1 | Source: libcbor-xs-perl |
| 2 | Maintainer: Debian Perl Group <[email protected]> |
| 3 | Uploaders: Nick Morrott <[email protected]> |
| 4 | Section: perl |
| 5 | Testsuite: autopkgtest-pkg-perl |
| 6 | Priority: optional |
| 7 | Build-Depends: debhelper-compat (= 13), |
| 8 | libcanary-stability-perl, |
| 9 | libcommon-sense-perl <!nocheck>, |
| 10 | libtypes-serialiser-perl <!nocheck>, |
| 11 | perl-xs-dev, |
| 12 | perl:native |
| 13 | Standards-Version: 4.6.2 |
| 14 | Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libcbor-xs-perl |
| 15 | Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libcbor-xs-perl.git |
| 16 | Homepage: https://metacpan.org/release/CBOR-XS |
| 17 | Rules-Requires-Root: no |
| 18 | |
| 19 | Package: libcbor-xs-perl |
| 20 | Architecture: any |
| 21 | Depends: ${misc:Depends}, |
| 22 | ${perl:Depends}, |
| 23 | ${shlibs:Depends}, |
| 24 | libcommon-sense-perl, |
| 25 | libtypes-serialiser-perl |
| 26 | Description: module for manipulating CBOR-formatted data (C/XS-accelerated) |
| 27 | CBOR::XS converts Perl data structures to the Concise Binary Object |
| 28 | Representation (CBOR) and vice versa. CBOR is a fast binary serialisation |
| 29 | format that aims to use an (almost) superset of the JSON data model, i.e. |
| 30 | when you can represent something useful in JSON, you should be able to |
| 31 | represent it in CBOR. |
| 32 | . |
| 33 | In short, CBOR is a faster and quite compact binary alternative to JSON, with |
| 34 | the added ability of supporting serialisation of Perl objects. (JSON often |
| 35 | compresses better than CBOR though, so if you plan to compress the data later |
| 36 | and speed is less important you might want to compare both formats first). |
| 37 | . |
| 38 | To give you a general idea about speed, with texts in the megabyte range, |
| 39 | CBOR::XS usually encodes roughly twice as fast as Storable or JSON::XS and |
| 40 | decodes about 15%-30% faster than those. The shorter the data, the worse |
| 41 | Storable performs in comparison. |