阅读背景:

在Java中有效地通过套接字发送大型int []

来源:互联网 

I am working on a Java application where I need to send an array of 500,000 integers from one Android phone to another Android phone over a socket connection as quickly as possible. The main bottleneck seems to be converting the integers so the socket can take them, whether I use ObjectOutputStreams, ByteBuffers, or a low level mask-and-shift conversion. What is the fastest way to send an int[] over a socket from one Java app to another?I am working on a Java application where I need




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: