Class: Arachni::Support::LookUp::HashSet
- Defined in:
- lib/arachni/support/lookup/hash_set.rb
Overview
Lightweight look-up Set implementation.
It uses stores hashes of items instead of the items themselves.
This leads to decreased memory consumption and faster comparisons during look-ups.
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ HashSet
constructor
A new instance of HashSet.
Methods inherited from Base
#<<, #clear, #delete, #empty?, #include?, #size
Constructor Details
#initialize ⇒ HashSet
Returns a new instance of HashSet.
34 35 36 37 |
# File 'lib/arachni/support/lookup/hash_set.rb', line 34 def initialize(*) super @collection = Set.new end |