"ovidiu.feodorov(a)jboss.com" wrote :
| Where exactly did you see the word "stream" in the Remoting API extension
document?
|
Why are you presuming I was referring to your posts? I was answering one of Clebert's
posts where he *did* propose using streams.
ovidiu.feodorov(a)jboss.com wrote :
| The memory allocated when creating a direct buffer is outside of the JVM heap. The
allocation is done through native methods, and it's likely to be significantly more
expensive than creating non-direct buffers.
|
| I am not saying that we shouldn't use ByteBuffers for the low-level access API, I
am saying that we should be very careful how we handle them, and what kind of buffers we
pass around, so the drawbacks don't outweigh the speed advantages obtained by having
I/O devices writing directly in the memory areas managed by direct buffers.
|
Are suggesting we preclude people from using direct byte buffers?
As far as I am concerned it is up to the user to use the API properly. We shouldn't
prevent them doing high performance stuff because we thing they're a bit stupid and
might make mistakes.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980269#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...