google_hash 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +5 -0
- data/VERSION +1 -1
- data/ext/extconf.rb +1 -1
- data/results.txt +3 -14
- metadata +3 -3
data/README
CHANGED
@@ -25,6 +25,7 @@ Usage:
|
|
25
25
|
|
26
26
|
a = GoogleHashDenseRubyToRuby.new # or GoogleHash.new
|
27
27
|
b = GoogleHashDenseLongToRuby.new # :int => Ruby
|
28
|
+
b = GoogleHashSparseLongToRuby.new # :int => Ruby
|
28
29
|
|
29
30
|
a[3] = 4
|
30
31
|
b[4] = 'abc'
|
@@ -35,6 +36,10 @@ a.each{|k, v| ... }
|
|
35
36
|
a.keys => Array
|
36
37
|
a.values => Array
|
37
38
|
|
39
|
+
To learn if sparse or dense is right for you, check their documentation:
|
40
|
+
|
41
|
+
http://google-sparsehash.googlecode.com/svn/trunk/doc/index.html
|
42
|
+
|
38
43
|
Installation:
|
39
44
|
|
40
45
|
gem install google_hash (if on doze, you'll need the devkit installed)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/ext/extconf.rb
CHANGED
@@ -31,7 +31,7 @@ end
|
|
31
31
|
if OS.bits == 32
|
32
32
|
unreachable_int = 31
|
33
33
|
else
|
34
|
-
|
34
|
+
unreachable_int = 63
|
35
35
|
end
|
36
36
|
|
37
37
|
ruby_key = {:convert_keys_from_ruby => "", :convert_keys_to_ruby => "", :key_type => "VALUE", :unreachable_key => "current_instance"} # TODO NULL is false here?
|
data/results.txt
CHANGED
@@ -2,6 +2,9 @@ Here some 1.9 mingw results
|
|
2
2
|
|
3
3
|
http://pastie.org/752318
|
4
4
|
|
5
|
+
1.9.2 linux:
|
6
|
+
|
7
|
+
http://pastie.org/752333
|
5
8
|
|
6
9
|
|
7
10
|
ruby 1.8.6 mingw:
|
@@ -18,20 +21,6 @@ Hash
|
|
18
21
|
0.5 (populate)
|
19
22
|
0.53125 (each)
|
20
23
|
|
21
|
-
1.9.2 linux:
|
22
|
-
|
23
|
-
GoogleHashSparse
|
24
|
-
0.3342118263244629 (populate)
|
25
|
-
0.05078697204589844 (each)
|
26
|
-
|
27
|
-
GoogleHashDense
|
28
|
-
0.14588713645935059 (populate)
|
29
|
-
0.056185007095336914 (each)
|
30
|
-
|
31
|
-
Hash
|
32
|
-
0.34199094772338867 (populate)
|
33
|
-
0.8924679756164551 (each)
|
34
|
-
|
35
24
|
1.8.6 linux:
|
36
25
|
|
37
26
|
GoogleHashSparse
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_hash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rogerdpack
|
@@ -26,8 +26,8 @@ description: Ruby wrappers to the google hash library
|
|
26
26
|
email: rogerdpack@gmail.com
|
27
27
|
executables: []
|
28
28
|
|
29
|
-
extensions:
|
30
|
-
|
29
|
+
extensions:
|
30
|
+
- ext/extconf.rb
|
31
31
|
extra_rdoc_files:
|
32
32
|
- README
|
33
33
|
files:
|