Class: Arachni::Support::LookUp::HashSet

Inherits:
Base show all
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

Base::DEFAULT_OPTIONS

Instance Attribute Summary

Attributes inherited from Base

#collection

Instance Method Summary collapse

Methods inherited from Base

#<<, #==, #any?, #clear, #delete, #dup, #empty?, #hash, #include?, #size

Constructor Details

#initializeHashSet

Returns a new instance of HashSet.

Parameters:



24
25
26
27
# File 'lib/arachni/support/lookup/hash_set.rb', line 24

def initialize(*)
    super
    @collection = Set.new
end