[erlang-questions] clarify: ETS and large binaries

Christian S chsu79@REDACTED
Thu Nov 1 11:48:08 CET 2007


Using the standard memory layout, large binaries are ref-counted in a special
binary heap. When messaging large binaries between processes, the messages
are creating only a new reference in the destination process and
incrementing the ref-count in the binary.

What happens when one store large binaries in ets? Will ets only store
references or will it copy the binary into ets memory space, so any
lookup yielding said binary creates a new, but duplicate, large
binary?



More information about the erlang-questions mailing list