[erlang-questions] Why is decode_packet so fast?

Sergey S <>
Sat Jan 17 23:06:09 CET 2009


Hello.

> I believe that it is implemented as a built-in function.

I think, it means that it isn't possible to make your own decoder as
fast as decode_packet using bit syntax (I beleive it can be done in
different ways, but didn't try all them)?

> I would also offer that if you have not compiled your version with HiPE
> enabled, you should give that a try as it has a good chance of improving the
> performance of binary decoding type of tasks.

Thanks! I've tried and new results are: [{330,358},{170,180}]

--
Sergey



More information about the erlang-questions mailing list