inmemory_kv 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42619c6541488e10ccb127fddf97a752ce2cff46
4
- data.tar.gz: 83f4e1fa740d3cc0d939dc08acf6ef86629eb5be
3
+ metadata.gz: a97aba7afbf83a32217a12502a710f7a5de71409
4
+ data.tar.gz: c95c7ecdd68a37366c98ec405fc77453e2097e16
5
5
  SHA512:
6
- metadata.gz: 546486f550f040163bc2c15eb17b3f7cc9705c8fe03d952828387d454fec94d4645e33239c3bb9f1ac5d65f5f200e2c0d13bd2e2465531e81e242fdad5f86095
7
- data.tar.gz: 16b176ab37ee278f2baed24c3f06281d8f20bc875e298f955a21933813937c67079c167f7bfb03dfb26cd66e0a2491e96431a7f0a771a88c640dec3aac44de21
6
+ metadata.gz: 66ae0a210562dbae12f555c15313981b1187a4bf68ec83b02d7f4b3eab2863c90af88716508ed5f768acd315407f20fe9101f43376b211da43b8fa6afaf5703a
7
+ data.tar.gz: 431d21bef61a4a003ec7a73d97ae10c51ed51c70d2270358bdc79e4054f416976345e9e89c03c6a774855d5ad590deefb1a7c6b52a6bffd5ac0607930ad37eff
data/README.md CHANGED
@@ -59,9 +59,15 @@ def timeit; t=Time.now; r=yield; ensure puts "Lasts: #{Time.now - t}"; r; end
59
59
 
60
60
  timeit{ 1000000.times{|i| s2s[i.to_s] = "qwer#{i}"} }
61
61
  timeit{ 1000000.times{|i| s2s[i.to_s] = "qwer#{i}"} }
62
+ timeit{ GC.start }
63
+ timeit{ GC.start }
64
+
65
+ # Compare with classic hash
62
66
  hsh = {}
63
67
  timeit{ 1000000.times{|i| hsh[i.to_s] = "qwer#{i}"} }
64
68
  timeit{ 1000000.times{|i| hsh[i.to_s] = "qwer#{i}"} }
69
+ timeit{ GC.start }
70
+ timeit{ GC.start }
65
71
 
66
72
  # cloning is made to be very fast:
67
73
  # it does not copy key/value entries
@@ -8,9 +8,9 @@ Gem::Specification.new do |spec|
8
8
  spec.version = InMemoryKV::VERSION
9
9
  spec.authors = ["Sokolov Yura aka funny_falcon"]
10
10
  spec.email = ["funny.falcon@gmail.com"]
11
- spec.summary = %q{Simple in memory string/string hash}
12
- spec.description = %q{Simple in memory string/string hash}
13
- spec.homepage = ""
11
+ spec.summary = %q{Simple in memory string/string hash without GC presure}
12
+ spec.description = %q{Simple in memory string/string hash which does not participate in GC and not encounted in}
13
+ spec.homepage = "https://github.com/funny-falcon/inmemory_kv"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -1,3 +1,3 @@
1
1
  module InMemoryKV
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inmemory_kv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sokolov Yura aka funny_falcon
@@ -52,7 +52,8 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: Simple in memory string/string hash
55
+ description: Simple in memory string/string hash which does not participate in GC
56
+ and not encounted in
56
57
  email:
57
58
  - funny.falcon@gmail.com
58
59
  executables: []
@@ -71,7 +72,7 @@ files:
71
72
  - lib/inmemory_kv.rb
72
73
  - lib/inmemory_kv/version.rb
73
74
  - test/test_str2str.rb
74
- homepage: ''
75
+ homepage: https://github.com/funny-falcon/inmemory_kv
75
76
  licenses:
76
77
  - MIT
77
78
  metadata: {}
@@ -95,7 +96,7 @@ rubyforge_project:
95
96
  rubygems_version: 2.4.4
96
97
  signing_key:
97
98
  specification_version: 4
98
- summary: Simple in memory string/string hash
99
+ summary: Simple in memory string/string hash without GC presure
99
100
  test_files:
100
101
  - test/test_str2str.rb
101
102
  has_rdoc: