agama 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{agama}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aditya Rachakonda"]
@@ -4,8 +4,15 @@ include TokyoCabinet
4
4
  module Agama
5
5
  module Adapters
6
6
  class TC
7
-
8
-
7
+
8
+ def initialize(params)
9
+ @e_lmemb = params[:lmemb] || 128
10
+ @e_nmemb = params[:nmemb] || 256
11
+ @e_bnum = params[:bnum] || 32749
12
+ @e_apow = params[:apow] || 8
13
+ @e_fpow = params[:fpow] || 10
14
+ @e_opts = params[:opts] || 0
15
+ end
9
16
 
10
17
  def open (path)
11
18
  @meta = HDB::new
@@ -23,6 +30,7 @@ module Agama
23
30
  end
24
31
 
25
32
  @edges = BDB::new
33
+ @edges.tune(@e_lmemb, @e_nmemb, @e_bnum, @e_apow, @e_fpow, @e_opts)
26
34
  # open the edges database
27
35
  if !@edges.open(path + "/edges.tcb", BDB::OWRITER | BDB::OCREAT)
28
36
  ecode = @edges.ecode
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agama
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 2
10
- version: 0.5.2
9
+ - 3
10
+ version: 0.5.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aditya Rachakonda