Closed
Bug 769291
Opened 13 years ago
Closed 13 years ago
Offload evicting offline caches to Cache IO thread.
Categories
(Core :: Networking: Cache, defect)
Core
Networking: Cache
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: sinker, Assigned: sinker)
Details
Attachments
(1 file, 3 obsolete files)
2.24 KB,
patch
|
sinker
:
review+
|
Details | Diff | Splinter Review |
OfflineCacheDevice remove entry data from database for evicting at main thread. Remove these data tasks to cache IO thread can improve the performance.
Assignee | ||
Comment 1•13 years ago
|
||
Assignee | ||
Comment 2•13 years ago
|
||
Attachment #637520 -
Attachment is obsolete: true
![]() |
||
Comment 3•13 years ago
|
||
Thinker, can you confirm that access to sqlite is thread-safe?
Comment 4•13 years ago
|
||
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).
![]() |
||
Comment 5•13 years ago
|
||
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.
Comment 6•13 years ago
|
||
The connection is thread safe. We use it currently from multiple threads. With this patch we only use it from one thread.
![]() |
||
Comment 7•13 years ago
|
||
(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.
Assignee | ||
Comment 8•13 years ago
|
||
Attachment #637572 -
Attachment is obsolete: true
Attachment #638617 -
Flags: review?(honzab.moz)
![]() |
||
Comment 9•13 years ago
|
||
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+
Assignee | ||
Comment 10•13 years ago
|
||
r=honzab
Attachment #638617 -
Attachment is obsolete: true
Attachment #640492 -
Flags: review+
Comment 11•13 years ago
|
||
Thinker, lets land this.
Comment 12•13 years ago
|
||
Target Milestone: --- → mozilla16
Assignee | ||
Comment 13•13 years ago
|
||
Comment 14•13 years ago
|
||
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.
Description
•