Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information