From 94aaadacf7daa6edf94724b1dee9549a60cc6498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?= Date: Thu, 7 May 2015 17:23:23 +0200 Subject: doc: Update efficiency guide with Maps memory info --- system/doc/efficiency_guide/advanced.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'system/doc') diff --git a/system/doc/efficiency_guide/advanced.xml b/system/doc/efficiency_guide/advanced.xml index 3609b8d88e..26e0c57e81 100644 --- a/system/doc/efficiency_guide/advanced.xml +++ b/system/doc/efficiency_guide/advanced.xml @@ -86,6 +86,19 @@ Tuple 2 words + the size of each element. + + Small Map + 4 words + 2 words per entry (key and value) + the size of each key and value pair. + + + Large Map + + At least, 2 words + 2 x N words + 2 x log16(N) words + + the size of each key and value pair, where N is the number of pairs in the Map. + A large Map is represented as a tree internally where each node in the tree is a + "sparse tuple" of arity 16. + + Pid 1 word for a process identifier from the current local node -- cgit v1.2.3 From a9161d2fc0390ba51201114e870093abb334afbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?= Date: Mon, 23 May 2016 17:03:29 +0200 Subject: doc: Update process memory initial size --- system/doc/efficiency_guide/advanced.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/doc') diff --git a/system/doc/efficiency_guide/advanced.xml b/system/doc/efficiency_guide/advanced.xml index 26e0c57e81..d2a6605166 100644 --- a/system/doc/efficiency_guide/advanced.xml +++ b/system/doc/efficiency_guide/advanced.xml @@ -135,7 +135,7 @@ Erlang process - 327 words when spawned, including a heap of 233 words. + 338 words when spawned, including a heap of 233 words. Memory Size of Different Data Types -- cgit v1.2.3 From 70eea8ef8e597312567f19612e3e99a645503bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?= Date: Wed, 25 May 2016 17:00:36 +0200 Subject: doc: Update version of erts and otp release --- system/doc/efficiency_guide/advanced.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'system/doc') diff --git a/system/doc/efficiency_guide/advanced.xml b/system/doc/efficiency_guide/advanced.xml index d2a6605166..016302fe50 100644 --- a/system/doc/efficiency_guide/advanced.xml +++ b/system/doc/efficiency_guide/advanced.xml @@ -35,8 +35,7 @@ how much memory different data types and operations require. It is implementation-dependent how much memory the Erlang data types and other items consume, but the following table shows some figures for - the erts-5.2 system in R9B. There have been no significant - changes in R13.

+ the erts-8.0 system in OTP 19.0.

The unit of measurement is memory words. There exists both a 32-bit and a 64-bit implementation. A word is therefore 4 bytes or -- cgit v1.2.3