Status: New
Labels: Type-Defect Priority-Medium

New issue 654 by Code bloat caused by repeated_field.h #include'ing <algorithm>

What steps will reproduce the problem?
1. Try preprocessing a file produced by protoc. Count the number of lines. 2. Now do the same as above, except before doing that, remove the statement #include <algorithm> from repeated_field.h. 3. You'll notice that the size of the preprocessed code reduces by some 22000 lines just by this simple change. This causes a significant improvement in compilation speed.

What is the expected output? What do you see instead?

It seems #include <algorithm> is unnecessarily included in repeated_field.h.

What version of the product are you using? On what operating system?

protobuf-2.5.0. Ubuntu Linux.

Please provide any additional information below.

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to