SWDEV-391858 - Reduce the size of step transfer
Change-Id: I78e9ed3c6550c497d6abdcf2b9e1a6d5bcdf7315
This commit is contained in:
@@ -90,7 +90,9 @@ void OCLCreateBuffer::run(void) {
|
||||
}
|
||||
#endif
|
||||
void *resultBuf = NULL;
|
||||
;
|
||||
// Reduce the buffer for the step transfers ahead of the allocation,
|
||||
// since huge buffers may cause paging and very low performance
|
||||
maxSteps /= 16;
|
||||
while ((resultBuf = malloc(maxSteps)) == NULL) {
|
||||
maxSteps /= 2;
|
||||
continue;
|
||||
|
||||
Verwijs in nieuw issue
Block a user