Permalink
Browse files

Bloom filter: remove double-testing introduced in dispatch.

  • Loading branch information...
1 parent a475b5f commit d727be2fa7b062e3862119123f4d07bf208c3b4e @esstrifork esstrifork committed Sep 25, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/hanoidb_bloom.erl
View
@@ -148,12 +148,9 @@ masked_pair(Mask, X, Y) -> {X band Mask, Y band Mask}.
all_set(_Mask, _I1, _I, []) -> true;
all_set(Mask, I1, I, [H|T]) ->
- case element(1, H) of
- array ->
- case bitmask_get(I, H) of
- true -> all_set(Mask, I1, (I+I1) band Mask, T);
- false -> false
- end
+ case bitmask_get(I, H) of
+ true -> all_set(Mask, I1, (I+I1) band Mask, T);
+ false -> false
end.
%% Adds element to set

0 comments on commit d727be2

Please sign in to comment.