mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-11 01:42:22 +03:00
Performance optimization in the JSON parser.
FossilOrigin-Name: 68d191f40e708962ec88e0c245b4496bc4a671300484b1cc0f3fc7e6d199a6e6
This commit is contained in:
@@ -1366,7 +1366,6 @@ json_parse_restart:
|
||||
case '\'': {
|
||||
u8 opcode;
|
||||
char cDelim;
|
||||
int nn;
|
||||
pParse->hasNonstd = 1;
|
||||
opcode = JSONB_TEXT;
|
||||
goto parse_string;
|
||||
@@ -1375,12 +1374,7 @@ json_parse_restart:
|
||||
opcode = JSONB_TEXT;
|
||||
parse_string:
|
||||
cDelim = z[i];
|
||||
nn = pParse->nJson;
|
||||
for(j=i+1; 1; j++){
|
||||
if( j>=nn ){
|
||||
pParse->iErr = j;
|
||||
return -1;
|
||||
}
|
||||
if( jsonIsOk[(unsigned char)z[j]] ) continue;
|
||||
c = z[j];
|
||||
if( c==cDelim ){
|
||||
|
||||
Reference in New Issue
Block a user