diff options
| author | 2024-04-21 17:42:44 -0700 | |
|---|---|---|
| committer | 2024-04-22 16:02:07 -0700 | |
| commit | a27bd3dcb956b0120f528561de7c56c299ce2c9b (patch) | |
| tree | 24ba8ae40b28abce585a9d28d2148a6988477417 /libs/androidfw/StringPool.cpp | |
| parent | 60da1b02fa5596d35266d78b3cba0ebade70e084 (diff) | |
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions