Commit a84c9563 authored by Tom Lane's avatar Tom Lane

Performance improvement for lexing long strings: increase flex's

YY_READ_BUF_SIZE, which turns out to have nothing to do with buffer size.
It's just a totally arbitrary upper limit on how much data myinput() is
asked for at one time.
parent 7cb253ed
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.66 2000/03/11 05:14:06 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.67 2000/03/13 01:52:06 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -47,6 +47,9 @@ static int myinput(char* buf, int max); ...@@ -47,6 +47,9 @@ static int myinput(char* buf, int max);
#undef YY_INPUT #undef YY_INPUT
#define YY_INPUT(buf,result,max) {result = myinput(buf,max);} #define YY_INPUT(buf,result,max) {result = myinput(buf,max);}
/* No reason to constrain amount of data slurped per myinput() call. */
#define YY_READ_BUF_SIZE 16777216
#else /* !FLEX_SCANNER */ #else /* !FLEX_SCANNER */
#undef input #undef input
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment