For me, I am specially in interested in threading, high scalability for I/O.
Netty really catches my eyes.
Therefore, I used eGit to get a copy from their GitHub.
What I aware is their pooling of the ByteBuf, it makes use of sun.misc.Unsafe. It allows us to allocate the MEMORY OFF HEAPLY.
Get yourself a cup of coffee and enjoy the below links if you are interested in High Performance Java:
1 . Java Magic. Part 4: sun.misc.Unsafe - mishadoff thoughts
http://mishadoff.github.io/blog/java-magic-part-4-sun-dot-misc-dot-unsafe/2 . Highly Scalable Blog
http://highlyscalable.wordpress.com/2012/02/02/direct-memory-access-in-java/
I will write a more detailed style here to describe how Netty make use of Unsafe.
沒有留言:
張貼留言