Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 654 by mohit.a...@gmail.com: Code bloat caused by repeated_field.h #include'ing <algorithm>
http://code.google.com/p/protobuf/issues/detail?id=654

What steps will reproduce the problem?
1. Try preprocessing a .pb.cc 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:
https://code.google.com/hosting/settings

--
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to