projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00ad3f4
)
Increase buffer length for full ast parser. Fixes #6276
author
Marek Safar
<marek.safar@gmail.com>
Thu, 2 Aug 2012 21:59:29 +0000
(17:59 -0400)
committer
Marek Safar
<marek.safar@gmail.com>
Thu, 2 Aug 2012 21:59:29 +0000
(17:59 -0400)
mcs/mcs/support.cs
patch
|
blob
|
history
diff --git
a/mcs/mcs/support.cs
b/mcs/mcs/support.cs
index 164709da3f5154a88a4782cf3595b9db98a394e3..d4e018c32594ad118a57c80cd32f675943c470d3 100644
(file)
--- a/
mcs/mcs/support.cs
+++ b/
mcs/mcs/support.cs
@@
-136,7
+136,12
@@
namespace Mono.CSharp {
/// </summary>
public class SeekableStreamReader : IDisposable
{
- public const int DefaultReadAheadSize = 2048;
+ public const int DefaultReadAheadSize =
+#if FULL_AST
+ 65536 / 2; // Large buffer because of ReadChars of large literal string
+#else
+ 4096 / 2;
+#endif
StreamReader reader;
Stream stream;