ZhangZhihui's Blog  

Using io.Copy is about twice as fast and uses only a fraction (less than 1%) of the memory. With really large files, if you’re using the io.ReadAll and os.WriteFile , you might run out of memory quickly.

 

posted on 2023-10-01 20:20  ZhangZhihuiAAA  阅读(6)  评论(0编辑  收藏  举报