Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a27bd3dc authored by Lee Shombert's avatar Lee Shombert
Browse files

Perform SQL comment scanning with a manual parser

SQL strings are scanned to find the (first) SQL command and to
characterize the statement.  This change replaces a regular expression
parser with a hand-crafted parser.

Custom unit tests indicate that the new parser is 10x faster than the
regex implementation.  Native memory allocation done by the Java
Matcher class is eliminated.

Additional unit tests have been added to test the scanner.

Test : atest
 * FrameworksCoreTests:android.database

Flag: android.database.sqlite.simple_sql_comment_scanner
Bug: 329118560

Change-Id: I3124dd7f57147607a07b42cfa711e54a81348b10
parent 60da1b02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment