Sha256: 19a30f26efa3015e066ee6f36de451470b598204e664abff4e7deae65c57e469

Contents?: true

Size: 1.07 KB

Versions: 7

Compression:

Stored size: 1.07 KB

Contents

=begin
    Copyright 2010-2013 Tasos Laskos <tasos.laskos@gmail.com>

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
=end

require 'set'

module Arachni
module Support::LookUp

#
# 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.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
#
class HashSet < Base

    # @param    (see Base#initialize)
    def initialize(*)
        super
        @collection = Set.new
    end

end

end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arachni-0.4.5.2 lib/arachni/support/lookup/hash_set.rb
arachni-0.4.5.1 lib/arachni/support/lookup/hash_set.rb
arachni-0.4.5 lib/arachni/support/lookup/hash_set.rb
arachni-0.4.4 lib/arachni/support/lookup/hash_set.rb
arachni-0.4.3.2 lib/arachni/support/lookup/hash_set.rb
arachni-0.4.3.1 lib/arachni/support/lookup/hash_set.rb
arachni-0.4.3 lib/arachni/support/lookup/hash_set.rb