Closed
Bug 78300
Opened 24 years ago
Closed 13 years ago
Make imglib process data on a separate thread
Categories
(Core :: Graphics: ImageLib, enhancement)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
DUPLICATE
of bug 716140
People
(Reporter: cathleennscp, Unassigned)
References
Details
(Keywords: perf, topembed-, Whiteboard: [adt3])
Attachments
(4 files)
|
23.54 KB,
patch
|
Details | Diff | Splinter Review | |
|
44.76 KB,
patch
|
Details | Diff | Splinter Review | |
|
17.58 KB,
patch
|
Details | Diff | Splinter Review | |
|
17.07 KB,
patch
|
Details | Diff | Splinter Review |
Comment 1•24 years ago
|
||
accepting.. posting patch
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
there are a few "issues" with this patch:
1. it sends async events way too often when it should be sending sync events.
2. we should probably just do an async proxy of GetInputStream on chrome:// and
file:// urls and read the whole buffer at once.
3. http isn't going to be threadsafe for 0.9.1, so we can't call AsyncOpen on a
thread other than the UI thread (at least not for http:// urls). We need to
call AsyncOpen on the UI thread and proxy onstart/onstop/ondataavailable calls
from http on the UI thread to the imglib thread.
4. we really want the image container created on the UI thread... but I'd like
to do this without the decoder needing to know anything about what thread it is
running on.. this should be possible, since decoders are quite isolated, but
will require a little bit of thought.
Comment 4•24 years ago
|
||
so what does it do you might ask? it loads all the chrome images... http
images will load after about 30 asserts.
Comment 5•24 years ago
|
||
On unix, this will require me to remove the use of gtk_timeout_* in the code and
fire plevents on the current thread's event queue. This should be fairly
straight forward.
don't know about mac or windows yet... I expect I will have to do something
similar.
Updated•24 years ago
|
Depends on: 78852
Summary: Make imglib thread safe → Make imglib process data on a seperate thread
Comment 7•24 years ago
|
||
Comment 8•24 years ago
|
||
the last patch is missing some changes.. new one coming
Comment 9•24 years ago
|
||
Comment 11•24 years ago
|
||
Comment 12•24 years ago
|
||
shipping off to mozilla 1.0. this is kinda pointless to land until http is
threadsafe.
Target Milestone: mozilla0.9.2 → mozilla1.0
Updated•23 years ago
|
Target Milestone: mozilla0.9.8 → mozilla1.0
Comment 13•23 years ago
|
||
Stuart: so this depends on bug 59434 being fixed?
Comment 14•23 years ago
|
||
yes, very much depends on 59434
Comment 15•23 years ago
|
||
batch: adding topembed per Gecko2 document
http://rocknroll.mcom.com/users/marek/publish/Gecko/Gecko2Tasks.html
Keywords: topembed
Comment 16•23 years ago
|
||
Topembed- as this is not currently needed by a major embedding customer.
Updated•22 years ago
|
Summary: Make imglib process data on a seperate thread → [RFE]Make imglib process data on a seperate thread
Updated•22 years ago
|
Summary: [RFE]Make imglib process data on a seperate thread → [RFE]Make imglib process data on a separate thread
Updated•22 years ago
|
Severity: normal → enhancement
Summary: [RFE]Make imglib process data on a separate thread → Make imglib process data on a separate thread
Updated•18 years ago
|
Assignee: pavlov → nobody
Status: ASSIGNED → NEW
QA Contact: tpreston → imagelib
Updated•17 years ago
|
Target Milestone: mozilla1.1alpha → Future
Updated•17 years ago
|
Priority: P3 → --
Target Milestone: Future → ---
Comment 18•17 years ago
|
||
After testing the impact image decoding has on page load times, I believe that such a patch would not result in any significant gains.
I ran some performance tests to try to determine the possible speed-ups that could be gained from implementing thread decoding. I ran the Talos tp tests that Tinderbox uses on Windows XP on two release builds of the trunk, one normal and one with all the image decoders disabled. Of course this kind of test isn't very accurate, but it is close enough for a rough estimate.
The time difference between the two was, on each test, anywhere from 1 to 4 percent. I'm not sure that such a small gain justifies the complexity of a patch, which would probably have a comparable (or more likely smaller) time savings. Besides, the overhead that comes from threading would probably nullify most of the gains and perhaps make it slower than before.
I would suggest marking this WONTFIX.
Comment 19•14 years ago
|
||
No code activity here since 2002, last reply in 2008 (comment 18) suggests WONTFIX, no reply since.
==> actually marking WONTFIX now.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
Comment 20•14 years ago
|
||
Actually, jeff is talking about doing this. CCing
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Comment 21•13 years ago
|
||
Doing this over in bug 716140 now.
Status: REOPENED → RESOLVED
Closed: 14 years ago → 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•