~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/compiler/src/v3_life.erl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-08-05 20:54:29 UTC
  • mfrom: (6.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090805205429-pm4pnwew8axraosl
Tags: 1:13.b.1-dfsg-5
* Fixed parentheses in Emacs mode (closes: #536891).
* Removed unnecessary conflicts with erlang-manpages package.
* Added workaround for #475459: disabled threads on sparc architecture.
  This breaks wxErlang, so it's only a temporary solution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
532
532
vdb_find(V, Vdb) ->
533
533
    %% Performance note: Profiling shows that this function accounts for
534
534
    %% a lot of the execution time when huge constant terms are built.
535
 
    %% Using the BIF lists:keysearch/3 is a lot faster than the
 
535
    %% Using the BIF lists:keyfind/3 is a lot faster than the
536
536
    %% original Erlang version.
537
 
    case lists:keysearch(V, 1, Vdb) of
538
 
        {value,Vd} -> Vd;
539
 
        false -> error
 
537
    case lists:keyfind(V, 1, Vdb) of
 
538
        false -> error;
 
539
        Vd -> Vd
540
540
    end.
541
541
 
542
542
%vdb_find(V, [{V1,F,L}=Vd|Vdb]) when V < V1 -> error;