performance optimization

This commit is contained in:
2017-11-21 23:03:34 +01:00
parent 294ffef8f5
commit cc12bd69db

View File

@@ -307,9 +307,9 @@ public class PacmanWebService
try
{
FileOutputStream fos = new FileOutputStream(file);
byte[] buffer = new byte[4096];
while (true)
{
byte[] buffer = new byte[1024];
int size = input.read(buffer);
if (size < 0) break;
else fos.write(buffer, 0, size);