Author: jmg
Date: Thu Jul  9 16:13:05 2015
New Revision: 285324
URL: https://svnweb.freebsd.org/changeset/base/285324

Log:
  increase buffer size to significantly increase performance...
  
  see:
  https://docs.freebsd.org/cgi/[email protected]
  
  for benchmarks...

Modified:
  head/lib/libmd/mdXhl.c

Modified: head/lib/libmd/mdXhl.c
==============================================================================
--- head/lib/libmd/mdXhl.c      Thu Jul  9 16:07:01 2015        (r285323)
+++ head/lib/libmd/mdXhl.c      Thu Jul  9 16:13:05 2015        (r285324)
@@ -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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to