SWDEV-391858 - Reduce the size of step transfer

Change-Id: I78e9ed3c6550c497d6abdcf2b9e1a6d5bcdf7315
Este cometimento está contido em:
German Andryeyev cometeu 2023-04-21 13:50:15 -04:00
1 ascendente 5865c642d4
cometimento 930d1f04c2
1 ficheiro modificado
+3 -1
+3 -1
Ver ficheiro
@@ -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;