Permalink
Browse files

Use RBTree instead of Hash.

  • Loading branch information...
1 parent 8f6f8f5 commit fc5dcece62049d9ea39e19f4b550a80503df2eaa @kouno committed Jul 2, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −0 Gemfile
  2. +1 −0 lib/activefacts/api.rb
  3. +1 −1 lib/activefacts/api/instance_index.rb
View
@@ -1,6 +1,7 @@
source 'https://rubygems.org'
gem 'rake', :group => [:development, :test]
+gem 'rbtree-pure'
group :development do
gem 'jeweler'
View
@@ -30,6 +30,7 @@
# of the counterpart ObjectType. There are no raw values, only instances of ValueType
# classes.
+require 'rbtree'
require 'activefacts/api/support' # General support code and core patches
require 'activefacts/api/vocabulary' # A Ruby module may become a Vocabulary
require 'activefacts/api/instance_index' # The index used by a constellation to record every instance
@@ -22,7 +22,7 @@ class InstanceIndex
def initialize(constellation, klass)
@constellation = constellation
@klass = klass
- @hash = {}
+ @hash = RBTree.new
end
def inspect

0 comments on commit fc5dcec

Please sign in to comment.