diff options
author | jmg <jmg@FreeBSD.org> | 2015-07-09 16:13:05 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2015-07-09 16:13:05 +0000 |
commit | 9b2d45a8505098a1e11947d6635ad4b203717a7e (patch) | |
tree | af578f7590b336713e6e0a69c0a4dee6d9bf8859 /lib | |
parent | 8cbb0879ba9efc6e4b370f1241205968342b2a05 (diff) | |
download | FreeBSD-src-9b2d45a8505098a1e11947d6635ad4b203717a7e.zip FreeBSD-src-9b2d45a8505098a1e11947d6635ad4b203717a7e.tar.gz |
increase buffer size to significantly increase performance...
see:
https://docs.freebsd.org/cgi/mid.cgi?20150513080342.GE37063@funkthat.com
for benchmarks...
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libmd/mdXhl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libmd/mdXhl.c b/lib/libmd/mdXhl.c index 62be235..f2e918f 100644 --- a/lib/libmd/mdXhl.c +++ b/lib/libmd/mdXhl.c @@ -49,7 +49,7 @@ MDXFile(const char *filename, char *buf) char * MDXFileChunk(const char *filename, char *buf, off_t ofs, off_t len) { - unsigned char buffer[BUFSIZ]; + unsigned char buffer[16*1024]; MDX_CTX ctx; struct stat stbuf; int f, i, e; |