HttpResponse Serialization

silenteh silenteh at gmail.com
Mon May 23 06:01:57 EDT 2011


Thanks Ngoc,
I was wondering why the HttpResponse does not implement serializable, but
then after reading more about NIO, there is probably a good reason.
Indeed I believe the Java serialization, uses the standard I/O, therefore it
is much slower then NIO.
For who is interested, here a good lik about the NIO:

http://www.cs.brown.edu/courses/cs161/papers/j-nio-ltr.pdf
http://www.cs.brown.edu/courses/cs161/papers/j-nio-ltr.pdf 

It is really worth to read it.

I need the HttpResponse object to be Serializable because I want to store it
to memcache. The example you linked, does the same.
Since I am using spymemcached, I was pondering to create a Transcoder for
spymemecached, which will use NIO.

Silenteh

--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/HttpResponse-Serialization-tp6389581p6393789.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list