[Asterisk-Dev] sched.c::schedule function can be a bottleneck and is optimised backwards

steve at daviesfam.org steve at daviesfam.org
Fri Oct 28 22:30:25 MST 2005



On Fri, 28 Oct 2005, Russell Bryant wrote:

> 
> On Oct 28, 2005, at 3:24 PM, Steve Kann wrote:
> > It might be instructive to write someting to dump the scheduler  
> > queue, and then cook up a few "average" example cases, and dump the  
> > queue, and see what it looks like.
> 
> This is actually already there.  All you have to do is define  
> DUMP_SCHEDULER in sched.c.  Then, the contents of the queue will be  
> dumped when you call ast_sched_add or ast_sched_del.

Yeah - I saw that.  But what I think I might do is implement a sort of 
"histogram" of the "when" values and how many entries down the list it had 
to search.

Steve




More information about the asterisk-dev mailing list