Re: Non Blocking Support

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jonas Temple wrote:
> CChris wrote:
> > Sure does. And perhaps the next win32lib version could have a task_yield() 
> > in doEvents(), provided there is a zero time way to prevent the call from 
> > Eu intrepreters that don't support task_yield.
> > I didn't test, but OTOH I'd hink the task_yield() n the message loop is 
> > overkill and could eat some CPU as it would be executed often for no
> > benefit.
> > . You appear to be well placed o test whether it is necessary to leave that
> > 
> > call there.
> 
> Maybe Rob could comment on the overhead of repeating task_yield()?  

With no tasks created (other than the single main task 
that all programs now have), on my 1.8 GHz P4, I can do 
4 million task_yields per second using exw.exe. (1/4 microsecond each). 
So if you were somehow doing, say, 100,000 events per second 
(10 microseconds each) the overhead of 1/4 of a microsecond, 
would be 2.5%

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu