作者: | 来源:互联网 | 2023-10-12 13:42
SayIhaveabytearraywith100,000bytesinit.Iwanttoconverteachbyteintoitstextualrepre
Say I have a byte array with 100,000 bytes in it. I want to convert each byte into its textual representation of itself. For example:
假设我有一个包含100,000个字节的字节数组。我想将每个字节转换为其自身的文本表示。例如:
byte[] b = new byte[55000];
for(int i = 0; i
The above code takes around 35 seconds to complete, is there some way I could cut that down to around 5 seconds?
上面的代码需要大约35秒才能完成,有什么方法可以将其减少到大约5秒钟吗?
3 个解决方案