Answers for "inf"

0

inf

Bin0 = <<0>>,                    %% 1
Bin1 = <<Bin0/binary,1,2,3>>,    %% 2
Bin2 = <<Bin1/binary,4,5,6>>,    %% 3
Bin3 = <<Bin2/binary,7,8,9>>,    %% 4
Bin4 = <<Bin1/binary,17>>,       %% 5 !!!
{Bin4,Bin3}                      %% 6
Posted by: Guest on April-19-2021
0

inf

export ERL_COMPILER_OPTIONS=bin_opt_info
Posted by: Guest on April-19-2021
0

inf

count1(<<_,T/binary>>, Count) -> count1(T, Count+1);
count1(<<>>, Count) -> Count.

count2(<<H,T/binary>>, Count) -> count2(T, Count+1);
count2(<<>>, Count) -> Count.

count3(<<_H,T/binary>>, Count) -> count3(T, Count+1);
count3(<<>>, Count) -> Count.
Posted by: Guest on April-19-2021
0

inf

Bin = <<Bin0,...>>
Posted by: Guest on April-19-2021
0

inf

./efficiency_guide.erl:60: Warning: NOT OPTIMIZED: binary is returned from the function
./efficiency_guide.erl:62: Warning: OPTIMIZED: match context reused
Posted by: Guest on April-19-2021
0

inf

<<Binary/binary, ...>>
<<Binary/bitstring, ...>>
Posted by: Guest on April-19-2021
0

inf

erlc +bin_opt_info Mod.erl
Posted by: Guest on April-19-2021
0

inf

Bin1 = <<Bin0,...>>,
PortOrPid ! Bin1,
Bin = <<Bin1,...>>  %% Bin1 will be COPIED
Posted by: Guest on April-19-2021
0

inf

after_zero(<<0,T/binary>>) ->
         %% BINARY CREATED: binary is returned from the function
    T;
after_zero(<<_,T/binary>>) ->
         %% OPTIMIZED: match context reused
    after_zero(T);
after_zero(<<>>) ->
    <<>>.
Posted by: Guest on April-19-2021

Browse Popular Code Answers by Language