E
Erik Wikström
[ ... ]
I only have VS 2008 Express, so I don't know, but it seems possible.
If you previously said you were using the "Express" edition, I didn't
catch it.
In any case, that's almost certainly the majority of the explanation
right there. Much of what they do in the Express edition of the compiler
is disable nearly _all_ optimization. Since iostreams are templates,
that means most of the code involved is being compiled with virtually no
optimization applied.
Fortunately, this is fairly easy to fix: the full version of the
compiler is included with (among other things) a number of versions of
the Windows SDK. If you care about performance at all, I'd advise
downloading and using that (at least for final builds).
I forgot to add, the Windows Platform SDK comes as a part of Visual C++
2008 Express, so downloading it again will buy you nothing.