Closed Bug 769291 Opened 13 years ago Closed 13 years ago

Offload evicting offline caches to Cache IO thread.

Categories

(Core :: Networking: Cache, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: sinker, Assigned: sinker)

Details

Attachments

(1 file, 3 obsolete files)

OfflineCacheDevice remove entry data from database for evicting at main thread. Remove these data tasks to cache IO thread can improve the performance.
Attached patch WIP (obsolete) — Splinter Review
Attachment #637520 - Attachment is obsolete: true
Thinker, can you confirm that access to sqlite is thread-safe?
We already use SQLite from two threads here. This patch reduces that which is why it's faster (we lock the main thread without this patch).
Doing something doesn't mean it is safe. Could anyone here confirm that accessing the connection is really thread safe? From my experience it is not, but things might change since that time.
The connection is thread safe. We use it currently from multiple threads. With this patch we only use it from one thread.
(In reply to Andreas Gal :gal from comment #6) > The connection is thread safe. We use it currently from multiple threads. > With this patch we only use it from one thread. Thanks.
Attachment #637572 - Attachment is obsolete: true
Attachment #638617 - Flags: review?(honzab.moz)
Comment on attachment 638617 [details] [diff] [review] Move nsOfflineCacheDevice::Discard() to cache IO thread, v2 Review of attachment 638617 [details] [diff] [review]: ----------------------------------------------------------------- r=honzab. Let's get this in. This is a good patch.
Attachment #638617 - Flags: review?(honzab.moz) → review+
r=honzab
Attachment #638617 - Attachment is obsolete: true
Attachment #640492 - Flags: review+
Thinker, lets land this.
Assignee: nobody → tlee
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: