Re: [whatwg] [Web workers] An attribute describing the "best" number of worker to invoke in a delegation use case

2009-12-07 Thread David Bruant
Ian Hickson a écrit : > On Wed, 11 Nov 2009, David Bruant wrote: > >> This is a new proposal taking into account the feedback I recieved to >> the "[WebWorkers] About the delegation example" message. >> >> In the delegation example of the WebWorker spec, we can see this line : >> "var num_worke

Re: [whatwg] [Web workers] An attribute describing the "best" number of worker to invoke in a delegation use case

2009-12-01 Thread Ian Hickson
On Wed, 11 Nov 2009, David Bruant wrote: > > This is a new proposal taking into account the feedback I recieved to > the "[WebWorkers] About the delegation example" message. > > In the delegation example of the WebWorker spec, we can see this line : > "var num_workers = 10;" > > My concern is a

Re: [whatwg] [Web workers] An attribute describing the "best" number of worker to invoke in a delegation use case

2009-11-12 Thread Boris Zbarsky
On 11/12/09 7:24 PM, David Bruant wrote: => I think it happens very often. While I'm writing this e-mail, "no process" is running. About fifty processes are runnable, but not running. They are passively waiting. My CPU is barely used. Interesting. I have several browser processes using timesl

Re: [whatwg] [Web workers] An attribute describing the "best" number of worker to invoke in a delegation use case

2009-11-12 Thread David Bruant
Boris Zbarsky a écrit : > On 11/12/09 3:40 PM, David Bruant wrote: >> I reformulate this way the conditions 2 and 3: >> - In "blank conditions" (no other processes/thread running on the CPU, >> enough memory to allocate the workers), running the same algorithm (an >> easy delegation algorithm) has

Re: [whatwg] [Web workers] An attribute describing the "best" number of worker to invoke in a delegation use case

2009-11-12 Thread Boris Zbarsky
On 11/12/09 3:40 PM, David Bruant wrote: => If you are comparing "no other processes running" and "one other process which is also completely cpu-bound running", you are not in what I've called "same running conditions". (because the number of concurrent processes is different). Yes, but your

Re: [whatwg] [Web workers] An attribute describing the "best" number of worker to invoke in a delegation use case

2009-11-12 Thread David Bruant
Boris Zbarsky a écrit : > On 11/12/09 12:49 PM, David Bruant wrote: >> => You're perfectly right. I reformulate the definition of "running >> conditions" (appearing in condition 2 and 3) as : >> "same memory available, same number of process running concurrently, no >> other worker running working

Re: [whatwg] [Web workers] An attribute describing the "best" number of worker to invoke in a delegation use case

2009-11-12 Thread Boris Zbarsky
On 11/12/09 12:49 PM, David Bruant wrote: => You're perfectly right. I reformulate the definition of "running conditions" (appearing in condition 2 and 3) as : "same memory available, same number of process running concurrently, no other worker running working on the same document". That doesn

Re: [whatwg] [Web workers] An attribute describing the "best" number of worker to invoke in a delegation use case

2009-11-12 Thread David Bruant
Boris Zbarsky a écrit : > On 11/11/09 10:19 PM, David Bruant wrote: >> This attribute have the following properties : >> - It's only dependant on the hardware, the operating system and the >> WebWorker implementation (thus, it is not dynamically computed by the >> user agent at each call and two ca

Re: [whatwg] [Web workers] An attribute describing the "best" number of worker to invoke in a delegation use case

2009-11-11 Thread Boris Zbarsky
On 11/11/09 10:19 PM, David Bruant wrote: This attribute have the following properties : - It's only dependant on the hardware, the operating system and the WebWorker implementation (thus, it is not dynamically computed by the user agent at each call and two calls in the same hardware//OS//WebWor

[whatwg] [Web workers] An attribute describing the "best" number of worker to invoke in a delegation use case

2009-11-11 Thread David Bruant
Hi, This is a new proposal taking into account the feedback I recieved to the "[WebWorkers] About the delegation example" message. In the delegation example of the WebWorker spec, we can see this line : "var num_workers = 10;" My concern is about the arbitrarity of the "10". Regarding the hardwa