lib/picky/backends/file.rb in picky-4.0.0pre1 vs lib/picky/backends/file.rb in picky-4.0.0pre2
- old
+ new
@@ -44,29 +44,9 @@
def create_realtime bundle
extract_lambda_or(similarity, bundle) ||
JSON.new(bundle.index_path(:realtime))
end
- # Currently, the loaded ids are intersected using
- # the fast C-based intersection.
- #
- # However, if we could come up with a clever way
- # to do this faster, it would be most welcome.
- #
- def ids combinations, _, _
- # Get the ids for each combination.
- #
- id_arrays = combinations.inject([]) do |total, combination|
- total << combination.ids
- end
-
- # Call the optimized C algorithm.
- #
- # Note: It orders the passed arrays by size.
- #
- Performant::Array.memory_efficient_intersect id_arrays
- end
-
end
end
end
\ No newline at end of file