From fba70edc94ee6e8c6f77c89706144cf4cf62a0ac Mon Sep 17 00:00:00 2001 From: Martin Sumner Date: Tue, 3 Jan 2017 17:08:36 +0000 Subject: [PATCH] Stop sort MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sort probably doesn’t help --- src/leveled_tinybloom.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/leveled_tinybloom.erl b/src/leveled_tinybloom.erl index 9d85b9a..5e86473 100644 --- a/src/leveled_tinybloom.erl +++ b/src/leveled_tinybloom.erl @@ -45,7 +45,7 @@ enter({hash, Hash}, Bloom) -> fun(Bit, Arr) -> add_to_array(Bit, Arr, 1024) end, SplitArray1 = lists:foldl(FoldFun, SplitArray0, - lists:usort([Bit1, Bit2, Bit3])), + [Bit1, Bit2, Bit3]), dict:store(Slot, <
>, Bloom);
 enter(Key, Bloom) ->
     Hash = leveled_codec:magic_hash(Key),