[erlang-questions] Why is decode_packet so fast?

Adam Lindberg adam@REDACTED
Mon Jan 19 16:54:35 CET 2009


Just for the record, a built-in function is a function implemented in C straight in the virtual machine. That is why they are so fast. You can make your own, but that would require patching the VM.

Cheers,
Adam

----- "Sergey S" <ad.sergey@REDACTED> wrote:

> Hello.
> 
> > erts/emulator/beam/erl_bif_port.c and
> erts/emulator/beam/packet_parser.c
> 
> It looks like I made a bad shot... =)
> 
> Thanks.
> 
> --
> Sergey.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list