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

Issue 2592753002: Create unbuffered Tumble entry point for LogDog. (Closed)

Created:
4 years ago by dnj
Modified:
4 years ago
Reviewers:
Vadim Sh., iannucci
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

Create unbuffered Tumble entry point for LogDog. Add RegisterInTransaction, an entry point for Tumble that initiates a standard datastore transaction, performs an operation, and registers the ensuing mutation against it. This is different from RunMutation in that it doesn't require a Mutation as a starting point and also doesn't create a transaction buffer. Leverage this in LogDog's "registerStream" to reduce the overhead of stream registration. BUG=chromium:675485 TEST=unit Review-Url: https://codereview.chromium.org/2592753002 Committed: https://github.com/luci/luci-go/commit/464d9ab6bc1614432afa076e4416b0033028cd7b

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove unrelated change. #

Total comments: 2

Patch Set 3 : Add bench, update. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -177 lines) Patch
M logdog/appengine/coordinator/endpoints/services/registerStream.go View 1 2 3 chunks +97 lines, -124 lines 0 comments Download
M logdog/appengine/coordinator/endpoints/services/registerStream_test.go View 1 chunk +0 lines, -37 lines 0 comments Download
M logdog/appengine/coordinator/endpoints/services/terminateStream.go View 1 chunk +2 lines, -1 line 0 comments Download
M logdog/appengine/coordinator/endpoints/services/terminateStream_test.go View 1 chunk +1 line, -1 line 0 comments Download
M logdog/appengine/coordinator/mutations/createArchiveTask.go View 1 chunk +2 lines, -2 lines 0 comments Download
M tumble/process.go View 1 chunk +1 line, -1 line 0 comments Download
M tumble/tumble.go View 1 2 4 chunks +38 lines, -11 lines 0 comments Download
A tumble/tumble_test.go View 1 2 1 chunk +85 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
dnj
PTAL. This is a smaller optimization, but I think it accomplishes two things: 1) It ...
4 years ago (2016-12-20 18:28:28 UTC) #2
Vadim Sh.
lgtm https://codereview.chromium.org/2592753002/diff/1/logdog/appengine/coordinator/service.go File logdog/appengine/coordinator/service.go (right): https://codereview.chromium.org/2592753002/diff/1/logdog/appengine/coordinator/service.go#newcode260 logdog/appengine/coordinator/service.go:260: // Use an AppEngine Context so we have ...
4 years ago (2016-12-20 21:25:15 UTC) #3
iannucci
can we please quantify the performance improvement? Is this 1% faster? 20% faster? 100x faster? ...
4 years ago (2016-12-21 10:05:19 UTC) #4
dnj
On 2016/12/21 10:05:19, iannucci wrote: > can we please quantify the performance improvement? Is this ...
4 years ago (2016-12-21 19:12:18 UTC) #5
iannucci
Oops! I meant to lgtm this the other day. Thanks for adding a benchmark.
4 years ago (2016-12-22 01:18:56 UTC) #6
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/2592753002/40001
4 years ago (2016-12-22 01:36:51 UTC) #9
commit-bot: I haz the power
4 years ago (2016-12-22 01:43:33 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://github.com/luci/luci-go/commit/464d9ab6bc1614432afa076e4416b0033028cd7b

Powered by Google App Engine
This is Rietveld 408576698