SWDEV-391858 - Reduce the size of step transfer

Change-Id: I78e9ed3c6550c497d6abdcf2b9e1a6d5bcdf7315
This commit is contained in:
German Andryeyev
2023-04-14 16:45:17 -04:00
bovenliggende 5865c642d4
commit 930d1f04c2
@@ -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;