Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(146)

Issue 6210074: Optimize ImmutableCollection builders (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by Louis Wasserman
Modified:
14 years ago
Reviewers:
Chris Povirk
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : Small bugfixes #

Total comments: 2

Patch Set 3 : Respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -150 lines) Patch
M guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java View 1 2 3 chunks +22 lines, -3 lines 0 comments Download
A guava-tests/test/com/google/common/collect/ImmutableCollectionTest.java View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
M guava-tests/test/com/google/common/collect/ImmutableListTest.java View 1 2 1 chunk +0 lines, -13 lines 0 comments Download
M guava/src/com/google/common/collect/ImmutableCollection.java View 2 chunks +19 lines, -0 lines 0 comments Download
M guava/src/com/google/common/collect/ImmutableList.java View 9 chunks +20 lines, -53 lines 0 comments Download
M guava/src/com/google/common/collect/ImmutableSet.java View 1 14 chunks +76 lines, -49 lines 0 comments Download
M guava/src/com/google/common/collect/ImmutableSortedSet.java View 1 2 6 chunks +78 lines, -32 lines 0 comments Download
M guava/src/com/google/common/collect/ObjectArrays.java View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 7
Louis Wasserman
14 years, 1 month ago (2012-05-19 15:29:45 UTC) #1
Louis Wasserman
The goal is to eliminate gratuitous copying from ImmutableCollection builders. In particular, ImmutableSet.Builder stores an ...
14 years, 1 month ago (2012-05-19 15:45:02 UTC) #2
Chris Povirk
Too-quick review before leaving for the airport. http://codereview.appspot.com/6210074/diff/3001/guava/src/com/google/common/collect/ImmutableSortedSet.java File guava/src/com/google/common/collect/ImmutableSortedSet.java (right): http://codereview.appspot.com/6210074/diff/3001/guava/src/com/google/common/collect/ImmutableSortedSet.java#newcode593 guava/src/com/google/common/collect/ImmutableSortedSet.java:593: return construct(comparator, ...
14 years, 1 month ago (2012-05-23 21:20:04 UTC) #3
Louis Wasserman
http://codereview.appspot.com/6210074/diff/3001/guava/src/com/google/common/collect/ImmutableSortedSet.java File guava/src/com/google/common/collect/ImmutableSortedSet.java (right): http://codereview.appspot.com/6210074/diff/3001/guava/src/com/google/common/collect/ImmutableSortedSet.java#newcode593 guava/src/com/google/common/collect/ImmutableSortedSet.java:593: return construct(comparator, size, contentsArray); On 2012/05/23 21:20:04, Chris Povirk ...
14 years ago (2012-05-25 15:25:46 UTC) #4
Chris Povirk
LGTM
14 years ago (2012-05-25 20:27:21 UTC) #5
Louis Wasserman
On 2012/05/25 20:27:21, Chris Povirk wrote: > LGTM The CL is at http://code.google.com/r/wassermanlouis-guava/source/detail?r=ecd1b1715812b90a1ba4085379abd8dfea1f0abf&name=builder-arrays .
14 years ago (2012-05-25 20:32:48 UTC) #6
Chris Povirk
14 years ago (2012-05-31 19:10:08 UTC) #7
Somehow this made some reflect+testing tests flaky(!).  I was looking in
completely the wrong place to fix them: The bug is actually in TypeToken, and I
have a fix.  This CL will go in after it.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b