]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Speedup md5sum/sha1sum/sha256sum/sha512sum command
authorlongpanda <admin@ventoy.net>
Thu, 15 Jul 2021 17:36:10 +0000 (01:36 +0800)
committerlongpanda <admin@ventoy.net>
Thu, 15 Jul 2021 17:36:10 +0000 (01:36 +0800)
GRUB2/MOD_SRC/grub-2.04/grub-core/commands/hashsum.c

index 1b0bfda9fff3c93152b190cc017d7ab42fad70aa..7bca70e4254e2a3d391fbd6d0299de5455409a81 100644 (file)
@@ -69,7 +69,7 @@ hash_file (grub_file_t file, const gcry_md_spec_t *hash, void *result)
   grub_uint64_t total = 0;
   void *context;
   grub_uint8_t *readbuf;
-#define BUF_SIZE 4096
+#define BUF_SIZE 1024 * 1024
   readbuf = grub_malloc (BUF_SIZE);
   if (!readbuf)
     return grub_errno;