[erlang-patches] [PATCH] add a erlang:external_size/2 BIF

Filipe David Manana fdmanana@REDACTED
Tue May 17 12:53:36 CEST 2011


git  fetch  git://github.com/fdmanana/otp.git   external_size_2

Btw, why isn't the existing BIF erlang:external_size/1 documented anywhere?
I see it used in some OTP modules like dets.erl for e.g. I find this a
very useful function, as it's certainly more efficient then doing a
"byte_size(term_to_binary(Term))" call.


-- 
Filipe David Manana,
fdmanana@REDACTED, fdmanana@REDACTED

"Reasonable men adapt themselves to the world.
 Unreasonable men adapt the world to themselves.
 That's why all progress depends on unreasonable men."



More information about the erlang-patches mailing list