summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2012-07-31 15:00:12 -0700
committerMarco Nelissen <marcone@google.com>2012-08-02 12:32:05 -0700
commit8ab2dc2f9680307febe997631c2148729f714e3d (patch)
tree25dbe904d90a3dce391452a8a51aac219676125c /api
parentb1758cf8cd007bfffb3d8adceca25f3b0c82bd77 (diff)
downloadframeworks_base-8ab2dc2f9680307febe997631c2148729f714e3d.zip
frameworks_base-8ab2dc2f9680307febe997631c2148729f714e3d.tar.gz
frameworks_base-8ab2dc2f9680307febe997631c2148729f714e3d.tar.bz2
Improve scan time for some cases
When the path being matched has a sqlite wildcard character in it, a "like" match will be quite slow. Unfortunately this is fairly common, since "_" is a wildcard character. However, because in most cases the case of the path in the database will match the case on disk, an "=" match will work, so it is worthwhile to try an "=" match first, before trying a "like". If there are no wildcard characters, the "like" will be as fast as the "=", because of the case-insensitive index on the _data column, so there is no need to try "=" first in that case. b/6751354 Change-Id: I1cd4efbd56a37886cb44a86acb73eb9a3c9f303d
Diffstat (limited to 'api')
0 files changed, 0 insertions, 0 deletions