Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

Serializing strings

Thread view: 
Thomas Dybdahl Ahle - 02 Oct 2005 20:34 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?

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.