Re: [go-nuts] Pogreb - embedded key/value store for read-heavy workloads

2018-01-09 Thread matthewjuran
Not exporting the mutex and other fields is a good consideration and probably does apply here. I'll keep that in mind. Thanks, Matt On Tuesday, January 9, 2018 at 12:15:55 AM UTC-6, Jakob Borg wrote: > > On 8 Jan 2018, at 23:35, matthe...@gmail.com wrote: > > > sync.RWMutex works well as an emb

Re: [go-nuts] Pogreb - embedded key/value store for read-heavy workloads

2018-01-08 Thread Jakob Borg
On 8 Jan 2018, at 23:35, matthewju...@gmail.com wrote: sync.RWMutex works well as an embedded struct field. Locking DB could be db.Lock() instead of db.mu.Lock(), and the same could apply to other fields. This is a common suggestion. I’ve never been very fond of i

[go-nuts] Pogreb - embedded key/value store for read-heavy workloads

2018-01-08 Thread Artem Krylysov
Hello everyone! I made a first release of a new key-value store optimized for fast random lookups https://github.com/akrylysov/pogreb Random lookup performance benchmark results https://akrylysov.github.io/pogreb/read-bench.png I will be happy to receive any feedback. Regards, Artem -- You