From ff79108f660bcceebb3b408668b7d814fcd7ebea Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Mon, 6 Sep 2021 20:28:54 +0200 Subject: [PATCH] cl_utils: Increase worksize for increased speed. H743 reads 2 MB in ~23 vs 27 seconds --- src/platforms/pc/cl_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/pc/cl_utils.c b/src/platforms/pc/cl_utils.c index 65de1cf..6bdba89 100644 --- a/src/platforms/pc/cl_utils.c +++ b/src/platforms/pc/cl_utils.c @@ -522,7 +522,7 @@ int cl_execute(BMP_CL_OPTIONS_t *opt) if ((opt->opt_mode == BMP_MODE_FLASH_READ) || (opt->opt_mode == BMP_MODE_FLASH_VERIFY) || (opt->opt_mode == BMP_MODE_FLASH_WRITE_VERIFY)) { -#define WORKSIZE 1024 +#define WORKSIZE 0x1000 uint8_t *data = alloca(WORKSIZE); if (!data) { DEBUG_WARN("Can not malloc memory for flash read/verify "