update swift read buf size