X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=blobdiff_plain;f=doc%2Ffeatures.rst;h=c83b64c22da7539583eceb1f38db13db6a8ebc46;hp=76d6830d3913f6872ae1a2f25608f5a9d1916515;hb=ec180a333b81b220e5325bdba75dcbc44b4311c6;hpb=f078d5d2ff1d95ebaac507ec67331547a0cac2a9 diff --git a/doc/features.rst b/doc/features.rst index 76d6830..c83b64c 100644 --- a/doc/features.rst +++ b/doc/features.rst @@ -1,3 +1,5 @@ +.. _features: + Features ======== @@ -47,33 +49,10 @@ Also there is `asn1crypto `__. automatically set required tags) * Descriptive errors, like ``pyderasn.DecodeError: UTCTime (tbsCertificate:validity:notAfter:utcTime) (at 328) invalid UTCTime format`` -* ``__slots__``, ``copy.copy()``, ``pickle``, `Cython `__ - friendliness -* Could be significantly faster and have lower memory usage - For example parsing of CACert.org's CRL (8.48 MiB) on FreeBSD 12.0 - amd64, Intel Core i5-6200U 2.3 GHz machine, Python 3.5.5/2.7.15: - - .. list-table:: - :widths: 15 45 20 20 - :header-rows: 1 - - * - Library - - Command - - Time, sec (Py3/Py2) - - Memory used, MiB (Py3/Py2) - * - pyasn1 0.4.5 - - ``der_decode(data, asn1Spec=rfc5280.CertificateList())`` - - 1257 / 1302 - - 1327 / 2093 - * - asn1crypto 0.24.0 - - ``asn1crypto.crl.CertificateList.load(data).native`` - - 29.3 / 43.8 - - 983 / 1677 - * - pyderasn 4.9 - - ``CertificateList().decode(data)`` (CertificateList is - converted ``pyasn1`` scheme definition) - - 27.6 / 32.5 - - 498 / 488 +* ``__slots__``, ``copy.copy()`` friendliness +* Workability with ``pickle`` +* `Cython `__ compatibility +* Could be significantly :ref:`faster ` and have lower memory usage * :ref:`Pretty printer ` and :ref:`command-line decoder `, that could conveniently replace utilities like either ``dumpasn1`` or