From 273206f31455c9a43f077a8a9c5671fabd623b0a Mon Sep 17 00:00:00 2001 From: BestPig Date: Sat, 25 Sep 2021 18:14:18 +0200 Subject: [PATCH] Reduce insert_splash_screen processing time with python3 from ~1m20s to ~0.6s --- utilities/insert_splash_screen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/insert_splash_screen.py b/utilities/insert_splash_screen.py index 99b4ef9a2..07be27a59 100644 --- a/utilities/insert_splash_screen.py +++ b/utilities/insert_splash_screen.py @@ -16,7 +16,7 @@ def convert_image(image_fn): assert w == 720 assert h == 1280 splash = splash.convert('RGBA') - splash_bin = b'' + splash_bin = bytearray() for row in range(SPLASH_SCREEN_WIDTH): for col in range(SPLASH_SCREEN_HEIGHT): r, g, b, a = splash.getpixel((col, row))