From de298d1fa24b2d3f127c9f46c7549f77389f439e Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Wed, 20 Jul 2011 17:08:30 +0200 Subject: Add documentation for ber encode nif optmization --- lib/asn1/doc/src/asn1_ug.xml | 4 ++-- lib/asn1/doc/src/asn1ct.xml | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'lib/asn1') diff --git a/lib/asn1/doc/src/asn1_ug.xml b/lib/asn1/doc/src/asn1_ug.xml index 61e4f6062f..1b399fb641 100644 --- a/lib/asn1/doc/src/asn1_ug.xml +++ b/lib/asn1/doc/src/asn1_ug.xml @@ -369,7 +369,7 @@ erlc -o ../asnfiles -I ../asnfiles -I /usr/local/standards/asn1 Person.asn

Together with the flags ber_bin and optimize you choose to use a nif for considerable - faster decode.

+ faster encode and decode.

+asn1config @@ -631,7 +631,7 @@ asn1ct:decode('H323-MESSAGES','SomeChoiceType',Bytes).

- The sole compile options ber, ber_bin, per and + The compile options ber, per and driver are kept for backwards compatibility and should not be used in new code. The nif implementation which replaces the linked-in driver has been shown to be about 5-15% faster. diff --git a/lib/asn1/doc/src/asn1ct.xml b/lib/asn1/doc/src/asn1ct.xml index d7c2572dc8..13e6977419 100644 --- a/lib/asn1/doc/src/asn1ct.xml +++ b/lib/asn1/doc/src/asn1ct.xml @@ -225,8 +225,8 @@ Binary = binary()

Option valid together with ber_bin and optimize options. It enables the use of several nifs that gives faster - decode. Nifs are only enabled by the explicit use of the option - nif

+ encode and decode. Nifs are only enabled by the explicit use of + the option nif

asn1config @@ -269,7 +269,11 @@ Binary = binary() .set.asn are exported, unless a {export,[atom()]} or {export_all,true} option are provided. The list of atoms are names of chosen asn1 - specs from the .set.asn file.

+ specs from the .set.asn file.

+

When used together with nif for ber_bin, the + asn1 nifs will be used if the asn1rt_nif module is + available. If it is not available, a slower erlang fallback + will be used.

inline -- cgit v1.2.3