[erlang-questions] How fast is to retrieve date from ETS table

Sverker Eriksson <>
Wed Jan 11 16:59:43 CET 2012


Ulf Wiger wrote:
> :
> The actual code is in $ERL_TOP/erts/emulator/beam/copy.c (copy_struct()), or:
>
> https://github.com/erlang/otp/blob/master/erts/emulator/beam/copy.c#L191
>   
Copy from ETS actually uses copy_shallow() which is simpler and even 
more effective as the term is known to be contained within one 
continuous block.

https://github.com/erlang/otp/blob/master/erts/emulator/beam/copy.c#L919


/Sverker, Erlang/OTP Ericsson










More information about the erlang-questions mailing list