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

Issue 27053: patch to improve Swap and add RemoveLast

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 1 month ago by ses4j
Modified:
14 years, 10 months ago
Reviewers:
kenton
Base URL:
http://protobuf.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 50

Patch Set 2 : Made kenton's suggested modifications from first patch. #

Total comments: 20

Patch Set 3 : Removed Message::Swap(), and addressed other comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+913 lines, -186 lines) Patch
M CHANGES.txt View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M src/google/protobuf/compiler/cpp/cpp_message.cc View 1 2 2 chunks +20 lines, -15 lines 0 comments Download
M src/google/protobuf/descriptor.pb.cc View 36 chunks +167 lines, -167 lines 0 comments Download
M src/google/protobuf/extension_set.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/google/protobuf/extension_set.cc View 1 2 1 chunk +82 lines, -0 lines 0 comments Download
M src/google/protobuf/generated_message_reflection.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/google/protobuf/generated_message_reflection.cc View 1 2 3 chunks +106 lines, -2 lines 0 comments Download
M src/google/protobuf/generated_message_reflection_unittest.cc View 1 2 1 chunk +116 lines, -0 lines 0 comments Download
M src/google/protobuf/message.h View 1 2 2 chunks +20 lines, -1 line 0 comments Download
M src/google/protobuf/repeated_field.h View 1 10 chunks +56 lines, -1 line 0 comments Download
M src/google/protobuf/test_util.h View 2 2 chunks +14 lines, -0 lines 0 comments Download
M src/google/protobuf/test_util.cc View 2 chunks +315 lines, -0 lines 0 comments Download

Messages

Total messages: 6
ses4j
15 years, 1 month ago (2009-03-13 22:08:32 UTC) #1
kenton
Hi Scott, Thanks for doing this! There were some other users recently who asked for ...
15 years, 1 month ago (2009-03-16 23:22:11 UTC) #2
ses4j
I left Swap() in the Message base interface, but addressed all other changes. If you ...
14 years, 10 months ago (2009-06-16 04:11:41 UTC) #3
kenton
Looking pretty good. I'd still prefer not to add Swap() to the Message interface. Unlike ...
14 years, 10 months ago (2009-06-19 21:14:39 UTC) #4
ses4j
Addressed suggestions from round 2, removing Message::Swap. Also moved unit tests to generated_message_reflection_unittest.cc. http://codereview.appspot.com/27053/diff/2002/3001 File ...
14 years, 10 months ago (2009-06-25 04:37:43 UTC) #5
kenton
14 years, 10 months ago (2009-06-25 19:06:02 UTC) #6
I went ahead and make Reflection::Swap() a little faster by swapping has_bits
directly, and then swapping the field values without looking at their has bits. 
I also added you to CONTRIBUTORS.txt.

Committed as rev 155.

Thanks!
Sign in to reply to this message.

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