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 +4 -4
- data/README.md +6 -0
- data/inmemory_kv.gemspec +3 -3
- data/lib/inmemory_kv/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a97aba7afbf83a32217a12502a710f7a5de71409
|
4
|
+
data.tar.gz: c95c7ecdd68a37366c98ec405fc77453e2097e16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/inmemory_kv.gemspec
CHANGED
@@ -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")
|
data/lib/inmemory_kv/version.rb
CHANGED
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.
|
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:
|