Object stream versus text stream - who is faster? Java

I am doing the work that I need to measure the time for writing and reading with streams of objects and text streams. I expected streams of objects to be faster than text streams, but my results were just the opposite situation for both situations (reading and writing). Can someone tell me which is usually faster?

Thank.

+3
source share
2 answers

Why do you think object streams will be faster? They have high overhead. Many people prefer other serialization mechanisms.

+4
source

, . , , , , . (, , , )

, , . , .

, : , Java. , Java .....

, :

  • , Goggle Kryo
  • , JSON Clojure s- ( )
+1

All Articles