Mercurial > illumos > illumos-gate
changeset 14079:eecf57cad0d1
3887 Enlarge data buffer in digest/mac to boost performance
Reviewed by: Saso Kiselkov <skiselkov.ml@gmail.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Dan McDonald <danmcd@nexenta.com>
author | David Höppner <0xffea@gmail.com> |
---|---|
date | Sun, 14 Jul 2013 17:30:29 +0000 |
parents | 4ba9d5323304 |
children | d1349977b975 |
files | usr/src/cmd/cmd-crypto/digest/digest.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/cmd-crypto/digest/digest.c Tue Jul 09 11:56:37 2013 +0200 +++ b/usr/src/cmd/cmd-crypto/digest/digest.c Sun Jul 14 17:30:29 2013 +0000 @@ -51,7 +51,11 @@ #include <cryptoutil.h> #include <kmfapi.h> -#define BUFFERSIZE (4096) /* Buffer size for reading file */ +/* + * Buffer size for reading file. This is given a rather high value + * to get better performance when a hardware provider is present. + */ +#define BUFFERSIZE (1024 * 64) /* * RESULTLEN - large enough size in bytes to hold result for