commit | e30c1087286e055015c850d1aba10d971256a72d | [log] [tgz] |
---|---|---|
author | Irfan Ahmad <irfan.ahmad@siemens.com> | Thu Jan 23 00:26:04 2025 +0500 |
committer | Benjamin Cabé <kartben@gmail.com> | Tue Jan 28 09:49:01 2025 +0100 |
tree | 9af075d0451f19af2569e0d98d14f746f0751b5d | |
parent | ccd2fd6c4778290f5f2c677770f8c01d6ef1c57f [diff] |
scripts: build: Optimize hex character list generation in file2hex.py Read and convert binary data in chunks of 1024 bytes, instead of 8 bytes. This significantly reduces the conversion time. The improvement increases with increasing file sizes but saturates to around 60-61% as file size approaches 64MiB, and beyond. The existing generated output format of eight byte-values per line is still preserved. Signed-off-by: Irfan Ahmad <irfan.ahmad@siemens.com>