incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: chunked response and couch_doc_open
Date Fri, 23 Oct 2009 18:24:47 GMT
> Hello,
>
> You can use the erts_debug:size(Term) and erts_debug:flat_size(Term)
> functions. They are somewhat
> documented here: http://www.erlang.org/doc/efficiency_guide/processes.html .
> Note that the returned
> value is in words and not bytes (see erlang:system_info(wordsize). ).
>
> Zoltan.
>

Zachary,

Most interesting, but I'm a bit confused by what its reporting:

1> erts_debug:size("stuff") * erlang:system_info(wordsize).
80
2> size(term_to_binary("stuff")).
9

Is it really using 80 bytes internally to represent that?

Paul Davis

Mime
View raw message