changeset 5778:319e18d08654

Increase READ_BUF_SIZE, used in #'insert-file-contents-internal, to #x10000 src/ChangeLog addition: 2014-01-16 Aidan Kehoe <kehoea@parhasard.net> * fileio.c (READ_BUF_SIZE): Stack sizes > 2**16 elicited bugs back in August 1996, but there's nothing to indicate this is still the case. GNU uses a block size of #x10000, and that size works better with the coding system buffering, improving performance there; move to this value.
author Aidan Kehoe <kehoea@parhasard.net>
date Thu, 16 Jan 2014 20:26:27 +0000
parents ccaa851ae712
children e9d0228c5671
files src/ChangeLog src/fileio.c
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Jan 16 19:56:06 2014 +0000
+++ b/src/ChangeLog	Thu Jan 16 20:26:27 2014 +0000
@@ -1,3 +1,11 @@
+2014-01-16  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* fileio.c (READ_BUF_SIZE):
+	Stack sizes > 2**16 elicited bugs back in August 1996, but there's
+	nothing to indicate this is still the case. GNU uses a block size
+	of #x10000, and that size works better with the coding system
+	buffering, improving performance there; move to this value.
+
 2014-01-16  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* file-coding.c:
--- a/src/fileio.c	Thu Jan 16 19:56:06 2014 +0000
+++ b/src/fileio.c	Thu Jan 16 20:26:27 2014 +0000
@@ -2870,9 +2870,7 @@
 }
 
 
-/* Stack sizes > 2**16 is a good way to elicit compiler bugs */
-/* #define READ_BUF_SIZE (2 << 16) */
-#define READ_BUF_SIZE (1 << 15)
+#define READ_BUF_SIZE (2 << 16)
 
 DEFUN ("insert-file-contents-internal", Finsert_file_contents_internal,
        1, 7, 0, /*