Commits

Aidan Kehoe committed 319e18d

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.

Comments (0)

Files changed (2)

+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:
 }
 
 
-/* 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, /*