[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Messaging and Remoting

timfox do-not-reply at jboss.com
Tue Oct 24 02:43:58 EDT 2006


"ovidiu.feodorov at 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 at 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#3980269

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980269



More information about the jboss-dev-forums mailing list