Closed Bug 488081 Opened 16 years ago Closed 16 years ago

Workers: Don't compile and run script if it is suspended

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- .2-fixed

People

(Reporter: bent.mozilla, Assigned: bent.mozilla)

Details

Attachments

(1 file)

Currently we compile the worker script and trigger the op callback in order to suspend a worker that should already be suspended. This is wasteful (computation time, memory, and a blocked thread) and we should simply stick the worker in a suspended queue somewhere for later.
Attached patch Patch, v1Splinter Review
This queues suspended worker runnables rather than executing and suspending them.
Assignee: nobody → bent.mozilla
Status: NEW → ASSIGNED
Attachment #394124 - Flags: superreview?(jst)
Attachment #394124 - Flags: review?(jst)
jst, review ping!
Comment on attachment 394124 [details] [diff] [review] Patch, v1 r+sr=jst
Attachment #394124 - Flags: superreview?(jst)
Attachment #394124 - Flags: superreview+
Attachment #394124 - Flags: review?(jst)
Attachment #394124 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment on attachment 394124 [details] [diff] [review] Patch, v1 approval1.9.2 requests aren't currently being monitored, since we're nearing RC freeze and there are too many outstanding requests, so I'm clearing this request. Feel free to re-request approval if you are confident that it's worth drivers' time to consider whether this non-blocker needs to land for 1.9.2 at this stage.
Attachment #394124 - Flags: approval1.9.2?
Comment on attachment 394124 [details] [diff] [review] Patch, v1 I'd like to get this on the branch. It prevents us from running worker code after we've already left the page it was on which can slow everything down significantly with some test cases. Also, it's baked for quite a while now.
Attachment #394124 - Flags: approval1.9.2.1?
Comment on attachment 394124 [details] [diff] [review] Patch, v1 a1922=beltzner
Attachment #394124 - Flags: approval1.9.2.2? → approval1.9.2.2+
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: