Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jul 2015 16:13:06 +0000 (UTC)
From:      John-Mark Gurney <jmg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285324 - head/lib/libmd
Message-ID:  <201507091613.t69GD6RZ036026@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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/mid.cgi?20150513080342.GE37063@funkthat.com
  
  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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507091613.t69GD6RZ036026>