This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Optimzed vs. readable code
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: caj at cs dot york dot ac dot uk
- Cc: Pierre THIERRY <nowhere dot man at levallois dot eu dot org>, libstdc++ at gcc dot gnu dot org
- Date: Thu, 1 Dec 2005 09:10:25 +0000
- Subject: Re: Optimzed vs. readable code
- References: <pan.2005.11.29.16.48.37.733665@levallois.eu.org> <F2B5F487-EF4D-43E4-B2D2-AD7EA914F24F@apple.com> <pan.2005.11.29.22.27.59.180878@levallois.eu.org> <4348dea50511300918w1a9a9ad1g@mail.gmail.com> <20051130173343.GD18129@bateleur.arcanes.fr.eu.org> <58115.83.70.108.191.1133375262.squirrel@www.cs.york.ac.uk>
On 11/30/05, caj@cs.york.ac.uk <caj@cs.york.ac.uk> wrote:
> that you may as well just add a comment saying "We use the first iterator
> to keep the current position".
Now that's a good idea.
Thierry, feel free to suggest patches that add comments explaining
what the code is doing. If the comments are accurate I presume you'd
get no opposition from the library maintainers. The libstdc++ code
certainly could be better commented in some places.
jon