Closed walkertest closed 5 years ago
pull request,简单修改了一下:https://github.com/whvcse/EasyCaptcha/pull/7
作者可以做一下测试,check一下
我这边拿这个简单做了下测试,发现回复字节流的时候,耗时会比较久.
pull request,简单修改了一下:#7
作者可以做一下测试,check一下
我这边拿这个简单做了下测试,发现回复字节流的时候,耗时会比较久.
修改不做参考.
sun的私有包,容易出问题
ImageIO.write,这个方法转换成字节流的时候,会非常慢. 线上打印接口耗时,发现的
可以参考:https://stackoverflow.com/questions/18886007/circumventing-imageio-writes-slowness
http://www.softwarepassion.com/converting-bufferedimage-into-byte-or-maybe-even-string/
https://www.cnblogs.com/softidea/p/10811489.html