Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- duplicate code

  • Loading branch information...
commit 1441c5366b5eff87c3600672634c5e3122dc6eba 1 parent c16845f
@floere authored
Showing with 6 additions and 19 deletions.
  1. +6 −19 server/lib/picky/backends/redis.rb
View
25 server/lib/picky/backends/redis.rb
@@ -248,27 +248,14 @@ def ids combinations, amount, offset
end
end
end
+ # Call the newly installed version.
+ #
+ ids combinations, amount, offset
else
- class << self
- 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
+ # Simply super call.
+ #
+ super
end
-
- # Call the newly installed version.
- #
- ids combinations, amount, offset
end
# Generate a multiple host/process safe result id.
Please sign in to comment.
Something went wrong with that request. Please try again.