diff --git a/README.md b/README.md index 9526364..8405100 100644 --- a/README.md +++ b/README.md @@ -30,3 +30,5 @@ With the following arguments meaning: 01/07/2016 1.00a cacheXXXX.bin header detection fixed. 27/06/2016 1.00 Initial release. ``` +## Footnote +Unlike Python2, Python3 is quite slow at generating collage bitmap... diff --git a/bmc-tools.py b/bmc-tools.py index 7a5f65a..29e5305 100755 --- a/bmc-tools.py +++ b/bmc-tools.py @@ -190,7 +190,6 @@ def b_export(self, dname): collage_builder = (lambda x, a=self, PAD=len(pad), WIDTH=range(w // 64): b''.join([b''.join([a.bmps[a.STRIPE_WIDTH*(x+1)-1-k][64*PAD*j:64*PAD*(j+1)] for k in WIDTH]) for j in range(64)])) else: collage_builder = (lambda x, a=self, PAD=len(pad), WIDTH=range(w // 64): b''.join([b''.join([a.bmps[a.STRIPE_WIDTH*x+k][64*PAD*j:64*PAD*(j+1)] for k in WIDTH]) for j in range(64)])) - c_bmp += b''.join(map(collage_builder, range(h//64))) self.b_write(os.path.join(dname, "%s_collage.bmp" % (self.fname)), self.b_export_bmp(w, h, c_bmp)) self.b_log(sys.stdout, False, 0, "Successfully exported collage file.")