0
Commit Graph

4 Commits

Author SHA1 Message Date
Avi Drissman
8ba1bad80d Update copyright headers in components/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c34.

No-Try: true
No-Presubmit: true
Bug: 1098010
Change-Id: If6a3370b0b2849d889ce797596fe1ccbad2f3fe6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3891619
Auto-Submit: Avi Drissman <avi@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1046502}
2022-09-13 19:22:36 +00:00
Mikhail Khokhlov
221c8253de Optimize query in FindFirstPageURLForHost
Data from 99th percentile power investigation show that FindFirstPageURLForHost can be quite expensive in some cases.
It seems that we can make it significantly faster by optimizing
the SQL query in it.

This CL removes the use of LIKE operator and substitutes it with
string comparisons. Local synthetic test shows ~20x speed improvement
for this query.

Bug: 1270809
Change-Id: Icb33828c5bf09a90196428eebd632282175fc471
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3731810
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Mikhail Khokhlov <khokhlov@google.com>
Cr-Commit-Position: refs/heads/main@{#1019569}
2022-06-30 11:55:25 +00:00
ssid
ded9dac8be Add OWNERS for components/database_utils
BUG=1288995

Change-Id: Idc42357e04aa946bf31606f22f22acded843ab6b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3430699
Auto-Submit: Siddhartha S <ssid@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Commit-Queue: Siddhartha S <ssid@chromium.org>
Cr-Commit-Position: refs/heads/main@{#967346}
2022-02-04 18:25:36 +00:00
Scott Violet
591d815848 history: moves Gurltodatabaseurl to its own file
This function is needed by favicons, which I plan to move to
//components/favicons. To avoid circular deps I'm moving the
function into //components/database_utils. I would have liked
to avoid a component purely for this function, but I couldn't
find a better place.

BUG=1076463
TEST=covered by tests

Change-Id: I0877444883eaf9f5f081d4a107879fe4b58697f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2309034
Reviewed-by: Peter Kotwicz <pkotwicz@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#790674}
2020-07-22 01:57:41 +00:00