Hi, do anybody know, if it has ane performace loose, to send a string in a
objectoutputsteram instead of sending it through a standard outputstream?

Signature
Programmers should realize their critical importance and responsibility in a
world gone digital. They are in many ways similar to the priests and monks of
Europe's Dark Ages; they are the only ones with the training and insight
to read and interpret the "scripture" of this age.
Oliver Wong - 04 Oct 2005 14:08 GMT
> Hi, do anybody know, if it has ane performace loose, to send a string in a
> objectoutputsteram instead of sending it through a standard outputstream?
"ObjectInputStream" IS a "OutputStream" in the sense that the
ObjectInputStream class extends the OutputStream class, and
ObjectInputStream is part of the Java2 5.0 API, so I don't know how much
more "standard" it can be.
Performance questions are almost always compiler dependent though. If
two methods have exactly the same output and side effects, there's no reason
why a sufficiently smart compiler couldn't optimize the slower one to behave
with the exact same speed as the faster one.
- Oliver