[Asterisk-Dev] ast_xxx function..?

Roy Sigurd Karlsbakk roy at karlsbakk.net
Tue Oct 11 02:33:22 MST 2005


will this mean the new function for allowing illegal nonce may be  
allowed into the code?
i see I haven't got any answer after documenting exactly how small a  
change this is, so I beleive it should go in there

On 1. okt. 2005, at 11.08, Roy Sigurd Karlsbakk wrote:

>>> IMHO this looks like a small call to a function cleaning up a  
>>> string.  It really can't do much of a performance
>>>  penalty, can it?
>>>
>>>
>>
>> It would not be huge, no, but it's not zero, and we already get  
>> enough complaints from people about performance :-)
>>
>
> attached is a short test of how to do this rather quickly. the  
> resulting code from cc -O3 -S shows this would result in less than  
> 100 instructions per nonce check, which is not what I'd call a  
> 'performance penalty'. also the code is very simple and therefor  
> can'be really be a maintenece burden either.
>
> roy
>
>
> <nonce-test.c>
> <nonce-test.s>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev




More information about the asterisk-dev mailing list