Change to the read buffer size on Windows for better performance

pull/4/head
Paul Hollinsky 2018-09-13 19:40:09 -04:00
parent 9f43e9e39e
commit f1f1cb1701
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ bool VCP::close() {
} }
void VCP::readTask() { void VCP::readTask() {
constexpr size_t READ_BUFFER_SIZE = 8; constexpr size_t READ_BUFFER_SIZE = 10240;
uint8_t readbuf[READ_BUFFER_SIZE]; uint8_t readbuf[READ_BUFFER_SIZE];
IOTaskState state = LAUNCH; IOTaskState state = LAUNCH;
DWORD bytesRead = 0; DWORD bytesRead = 0;