aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2017-07-08 02:06:11 +0200
committerAnders Svensson <[email protected]>2017-08-03 17:14:28 +0200
commitfa2f0572aa0604bf03d4d3eaa358719ffd877545 (patch)
tree305e5e15b565ac05b27fc2b7b1268d89dd795266 /lib/diameter/src/base/diameter.erl
parent55e65b262cdf0b794ab443928676720a323cf6b0 (diff)
downloadotp-fa2f0572aa0604bf03d4d3eaa358719ffd877545.tar.gz
otp-fa2f0572aa0604bf03d4d3eaa358719ffd877545.tar.bz2
otp-fa2f0572aa0604bf03d4d3eaa358719ffd877545.zip
Add decode_format record_from_map
Undocumented, for transforming a map decode to record. The record decode becomes more expensive the larger the number of AVPs in the message definition in question, since the record is recreated each time an AVP value is set in it. The map decode can potentially do better.
Diffstat (limited to 'lib/diameter/src/base/diameter.erl')
-rw-r--r--lib/diameter/src/base/diameter.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter.erl b/lib/diameter/src/base/diameter.erl
index 75deaad511..85a54c8e61 100644
--- a/lib/diameter/src/base/diameter.erl
+++ b/lib/diameter/src/base/diameter.erl
@@ -332,7 +332,11 @@ call(SvcName, App, Message) ->
:: 0..16#FFFFFF.
-type decode_format()
- :: record | list | map | false.
+ :: record
+ | list
+ | map
+ | false
+ | record_from_map.
%% Options passed to start_service/2