[erlang-questions] pattern matching vs proplists vs dict performance

Torben Hoffmann <>
Thu May 5 21:09:35 CEST 2011


On Thu, May 5, 2011 at 21:04, Mikhail Sobolev <>wrote:

> Hi Loïc,
>
> <snip>


> >> 2) why there's such a big difference in time? (proplists module
> >> provides BIFs, right?)
>

bifs_in_release() ->
    xref:start(s).
    xref:add_release(s,"c:/Program\ Files/erl5.7.4/",[{builtins,true}]).
    {ok,Bifs} = xref:q(s,"B").
    Bifs.

This will give you all BIFs in the release. Change the path according to
your set-up or take the path as an argument to the function.

Cheers,
Torben
-- 
http://www.linkedin.com/in/torbenhoffmann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110505/7a5bc9ea/attachment.html>


More information about the erlang-questions mailing list