Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Issue 2607663002: Add treapstore, a treap-based in-memory data store (Closed)

Created:
3 years, 12 months ago by dnj
Modified:
3 years, 11 months ago
Reviewers:
Vadim Sh., iannucci, hinoka
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

Add treapstore, a treap-based in-memory data store Add treapstore, which leverages gtreap implementation at "github.com/luci/gtreap" to build a store. This is intended as a lightweight and dedicated replacement for gkvlite in "github.com/luci/gae/impl/memory". BUG=chromium:675485 TEST=unit Review-Url: https://codereview.chromium.org/2607663002 Committed: https://github.com/luci/luci-go/commit/aa8118f9689dceeb722b56a74dc40c05945d380d

Patch Set 1 #

Patch Set 2 : Use treapstore for LogDog BigTable testing. #

Total comments: 11

Patch Set 3 : Comments. #

Patch Set 4 : Cache sorted collection names, copy-on-write. #

Patch Set 5 : More like gkvlite: per-collection compare, create and get are different functions. #

Patch Set 6 : Whatever 100% coverage. #

Patch Set 7 : Fix test race, better docs, valid zero values. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+553 lines, -36 lines) Patch
A common/data/treapstore/store.go View 1 2 3 4 5 6 1 chunk +248 lines, -0 lines 0 comments Download
A common/data/treapstore/store_test.go View 1 2 3 4 5 6 1 chunk +267 lines, -0 lines 0 comments Download
M logdog/common/storage/bigtable/testing.go View 1 2 3 4 8 chunks +38 lines, -36 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
dnj
PTAL. This is part of a series of patches that I created today. For context ...
3 years, 12 months ago (2016-12-27 23:50:48 UTC) #2
Vadim Sh.
mostly lg https://codereview.chromium.org/2607663002/diff/20001/common/data/treapstore/store.go File common/data/treapstore/store.go (right): https://codereview.chromium.org/2607663002/diff/20001/common/data/treapstore/store.go#newcode18 common/data/treapstore/store.go:18: "github.com/luci/gtreap" do we need to fork it? ...
3 years, 12 months ago (2016-12-28 01:33:40 UTC) #3
Vadim Sh.
https://codereview.chromium.org/2607663002/diff/20001/common/data/treapstore/store.go File common/data/treapstore/store.go (right): https://codereview.chromium.org/2607663002/diff/20001/common/data/treapstore/store.go#newcode18 common/data/treapstore/store.go:18: "github.com/luci/gtreap" On 2016/12/28 01:33:40, Vadim Sh. wrote: > do ...
3 years, 12 months ago (2016-12-28 01:34:28 UTC) #4
dnj
Thanks! Made those changes. https://codereview.chromium.org/2607663002/diff/20001/common/data/treapstore/store.go File common/data/treapstore/store.go (right): https://codereview.chromium.org/2607663002/diff/20001/common/data/treapstore/store.go#newcode18 common/data/treapstore/store.go:18: "github.com/luci/gtreap" On 2016/12/28 01:34:27, Vadim ...
3 years, 12 months ago (2016-12-28 03:01:06 UTC) #5
dnj
BTW I intend to 100% coverage test this before commit. I didn't want to overinvest ...
3 years, 12 months ago (2016-12-28 03:01:43 UTC) #6
dnj
(ping) Got 100% test coverage, things looking good, and deps (gtreap) are all set up. ...
3 years, 11 months ago (2016-12-28 23:23:56 UTC) #11
Vadim Sh.
lgtm
3 years, 11 months ago (2016-12-28 23:48:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2607663002/120001
3 years, 11 months ago (2016-12-28 23:58:19 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2016-12-29 00:03:50 UTC) #17
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://github.com/luci/luci-go/commit/aa8118f9689dceeb722b56a74dc40c05945d380d

Powered by Google App Engine
This is Rietveld 408576698