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

Issue 1830773003: Add Digest.hashCode. (Closed)

Created:
4 years, 9 months ago by nweiz
Modified:
4 years, 9 months ago
Reviewers:
kevmoo
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/crypto.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 4

Patch Set 2 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M lib/src/digest.dart View 1 2 chunks +3 lines, -0 lines 0 comments Download
M pubspec.yaml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
nweiz
4 years, 9 months ago (2016-03-23 22:00:00 UTC) #1
kevmoo
lgtm https://codereview.chromium.org/1830773003/diff/1/lib/src/digest.dart File lib/src/digest.dart (right): https://codereview.chromium.org/1830773003/diff/1/lib/src/digest.dart#newcode22 lib/src/digest.dart:22: var digest = other as Digest; might could ...
4 years, 9 months ago (2016-03-23 22:03:00 UTC) #2
nweiz
https://codereview.chromium.org/1830773003/diff/1/lib/src/digest.dart File lib/src/digest.dart (right): https://codereview.chromium.org/1830773003/diff/1/lib/src/digest.dart#newcode22 lib/src/digest.dart:22: var digest = other as Digest; On 2016/03/23 22:03:00, ...
4 years, 9 months ago (2016-03-23 22:05:22 UTC) #3
nweiz
Code review changes
4 years, 9 months ago (2016-03-23 22:05:32 UTC) #4
kevmoo
https://codereview.chromium.org/1830773003/diff/1/lib/src/digest.dart File lib/src/digest.dart (right): https://codereview.chromium.org/1830773003/diff/1/lib/src/digest.dart#newcode22 lib/src/digest.dart:22: var digest = other as Digest; On 2016/03/23 22:05:22, ...
4 years, 9 months ago (2016-03-23 22:07:17 UTC) #5
nweiz
Committed patchset #2 (id:20001) manually as 493d76d50b16bc650fd972fe09b75244698fea57 (presubmit successful).
4 years, 9 months ago (2016-03-23 22:11:17 UTC) #7
nweiz
https://codereview.chromium.org/1830773003/diff/1/lib/src/digest.dart File lib/src/digest.dart (right): https://codereview.chromium.org/1830773003/diff/1/lib/src/digest.dart#newcode22 lib/src/digest.dart:22: var digest = other as Digest; On 2016/03/23 22:07:17, ...
4 years, 9 months ago (2016-03-23 22:11:29 UTC) #8
kevmoo
4 years, 9 months ago (2016-03-23 22:14:02 UTC) #9
Message was sent while issue was closed.
On 2016/03/23 22:11:29, nweiz wrote:
> https://codereview.chromium.org/1830773003/diff/1/lib/src/digest.dart
> File lib/src/digest.dart (right):
> 
>
https://codereview.chromium.org/1830773003/diff/1/lib/src/digest.dart#newcode22
> lib/src/digest.dart:22: var digest = other as Digest;
> On 2016/03/23 22:07:17, kevmoo wrote:
> > On 2016/03/23 22:05:22, nweiz wrote:
> > > On 2016/03/23 22:03:00, kevmoo wrote:
> > > > might could use ListEquality.equals here?
> > > 
> > > I'm guessing the bitwise stuff is more efficient, since it takes advantage
> of
> > > the fact that the list contains only bytes.
> > 
> > Sure – then another thought: would it be good to short-circuit the
> comparison if
> > there is a diff before the end of the list?
> 
> On second thought, I will just switch to ListEquality. There's no reason to
> believe that microefficiency is crucial here.

Agreed!

Powered by Google App Engine
This is Rietveld 408576698