aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-08-01 16:43:02 +0200
committerLukas Larsson <[email protected]>2011-08-01 16:43:02 +0200
commit97f867992aaf98eac44c8fcd17df3a15e4aa3eab (patch)
treef1ece9887cc39f1206c86cc48d1b38aa4ccb4ef2
parent61edfb4268b8fa4e70d9ba6b1a18652f946671c1 (diff)
parentfca6762375a70aa5d28782c5dd42a16f8e26aabc (diff)
downloadotp-97f867992aaf98eac44c8fcd17df3a15e4aa3eab.tar.gz
otp-97f867992aaf98eac44c8fcd17df3a15e4aa3eab.tar.bz2
otp-97f867992aaf98eac44c8fcd17df3a15e4aa3eab.zip
Merge branch 'lukas/public_key/use_asn1_nif/OTP-9414' into major
* lukas/public_key/use_asn1_nif/OTP-9414: Both encode and decode nifs are now available in the asn1rt Start using asn1 nifs for OTP-PUB-KEY.asn1 asn1 will use an erlang fallback if the nifs are not found
-rw-r--r--lib/public_key/asn1/Makefile2
-rw-r--r--lib/public_key/doc/src/introduction.xml8
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/public_key/asn1/Makefile b/lib/public_key/asn1/Makefile
index 94abec083c..6b2a2bc3d9 100644
--- a/lib/public_key/asn1/Makefile
+++ b/lib/public_key/asn1/Makefile
@@ -65,7 +65,7 @@ EBIN = ../ebin
EXTRA_ERLC_FLAGS =
ERL_COMPILE_FLAGS += $(EXTRA_ERLC_FLAGS)
-ASN_FLAGS = -bber_bin +der +compact_bit_string +optimize +noobj +asn1config +inline
+ASN_FLAGS = -bber_bin +der +compact_bit_string +optimize +noobj +asn1config +inline +nif
# ----------------------------------------------------
# Targets
diff --git a/lib/public_key/doc/src/introduction.xml b/lib/public_key/doc/src/introduction.xml
index 8cf11ee10e..a21fcf3576 100644
--- a/lib/public_key/doc/src/introduction.xml
+++ b/lib/public_key/doc/src/introduction.xml
@@ -48,5 +48,13 @@
of the concepts of using public keys.</p>
</section>
+ <section>
+ <title>Performance tips</title>
+ <p>The public_key decode and encode functions will try to use the nifs
+ which are in the asn1 compilers runtime modules if they can be found.
+ So for the best performance you want to have the asn1 application in the
+ path of your system. </p>
+ </section>
+
</chapter>