Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
[ANN] Localmemcache-0.0.1, efficiently sharing a Hashtable on a local Unix machine
Sven C. Koehler
3/7/2009 12:23:00 PM
Hi,
today I am releasing the very first version of localmemcache (version 0.0.1).
Localmemcache is a library written in C that offers efficient sharing of a
hashtable between processes on a local Unix machine by taking advantage of
shared memory. Its Ruby binding aims to be similar to that of the MemCache
Ruby bindings.
*
http://localmemcache.ruby...
EXAMPLE
=======
require 'localmemcache'
$lm = LocalMemCache.new :namespace => "viewcounters"
$lm[:foo] = 1
$lm[:foo]
$lm.delete(:foo)
PERFORMANCE
===========
Here's a quick speed comparison, made on an
Intel(R) Xeon(R) CPU E5205 @ 1.86GHz:
Benchmark pseudo code:
2_000_000.times {
index = rand(10000).to_s
$hash.set(index, index)
$hash.get(index)
}
MemCache: 253326.122 ms
LocalMemCache: 6055.552 ms
Ruby's Hash: 4963.313 ms
So in this example localmemcache is about 40 times faster than using memcache
locally, and about 20% slower than Ruby's hash.
INSTALL
=======
# gem install localmemcache
CONTACT
=======
Please contact me with bugs, suggestions and patches at: schween + snafu # de
LINKS
=====
Localmemcache:
http://localmemcache.ruby...
Rubyforge project:
http://localmemcache.ruby...
Source code is hosted on github:
http://github.com/sck/loca...
Best,
Sven C. Koehler
localmemcache-0.0.1.gem 251971dd68451656d756b8bd1abe5879
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
[ANN] Localmemcache-0.0.1, efficiently sharing a Hashtable on a local Unix machine
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password