Re: Non Blocking Support
- Posted by Robert Craig <rds at RapidEuphoria.com> Feb 16, 2007
- 635 views
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